Title: Correct CSS referencing?
Last modified: August 19, 2016

---

# Correct CSS referencing?

 *  [michaelmcguk](https://wordpress.org/support/users/michaelmcguk/)
 * (@michaelmcguk)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/correct-css-referencing/)
 * Hi!
 * I have a line in one of the pages:
    `<ul><li class="page_item page-item-5"><a
   href="http://www.sitename.com/wordpress/?page_id=5" title="Standing out by standing
   for">Standing out by standing for</a></li></ul>`
 * Now, I was wondering if I want to make this particular link have a different 
   color background(say), how do I do this in CSS?
 * I’ve tried li.page_item .page-item-5 {background-color:#000}; but it doesn’t 
   seem to like it 🙁
 * Please help. Tearing hair out here.

Viewing 1 replies (of 1 total)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/correct-css-referencing/#post-699043)
 * Duplicate topic:
 * [http://wordpress.org/support/topic/157535](http://wordpress.org/support/topic/157535)
 * Please avoid posting more than once on any particular issue (we really don’t 
   like it).

Viewing 1 replies (of 1 total)

The topic ‘Correct CSS referencing?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/correct-css-referencing/#post-699043)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
