Solved

How to change background color for items on webapge

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

This article discusses how to create an extensible mechanism for linked drop downs.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

813 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

17 Experts available now in Live!

Get 1:1 Help Now