Title: Unique Page css changes
Last modified: August 20, 2016

---

# Unique Page css changes

 *  [rpd2](https://wordpress.org/support/users/rpd2/)
 * (@rpd2)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/unique-page-css-changes/)
 * Hey Guys,
 * I am trying to have a different background image for a div for all my pages.
 * I tried to
 *     ```
       #heading-container.page-id-2 {
       background: url(./images/main/light-bar.jpg) top center;
       }
       ```
   
 * But that was not working..
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Rupam Guha](https://wordpress.org/support/users/rupamguha/)
 * (@rupamguha)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/unique-page-css-changes/#post-2592894)
 * If you share your URL then I can help you out
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/unique-page-css-changes/#post-2592931)
 * definitively, preferred:
 * > If you share your URL then I can help you out
 * general:
    what is creating the `.page-id-2` css class?
 * if this is from `body_class`, try:
 *     ```
       .page-id-2 #heading-container {
       background: url(./images/main/light-bar.jpg) top center;
       }
       ```
   
 * depending on where you added the css code, check the path to the background image.
 *  Thread Starter [rpd2](https://wordpress.org/support/users/rpd2/)
 * (@rpd2)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/unique-page-css-changes/#post-2593055)
 * That was it!
 * .page-id-2 #heading-container {
    background: url(./images/main/light-bar.jpg)
   top center; }
 * Thanks alchymyth!
 * I was close.. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Unique Page css changes’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [rpd2](https://wordpress.org/support/users/rpd2/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/unique-page-css-changes/#post-2593055)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
