Solved

How to change background color for items on webapge

Posted on 2014-10-13
1
116 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn how to count occurrences of each item in an array.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

792 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