Solved

How to change background color for items on webapge

Posted on 2014-10-13
1
110 Views
Last Modified: 2014-10-13
I am just tying to change the background colors for the sticky posts on this page: Newgoloka.com. That is, the first two posts on the left.

I have tried adding style info to the "sticky" section of the style.css, but it gets overridden.
0
Comment
Question by:Jeff swicegood
1 Comment
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40378603
Not sure which first two you mean

CSS
#post-listing article.sticky:nth-child(-n+2) {
    background: green;
}

Open in new window

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now