Title: Same CSS change on multiple pages
Last modified: August 21, 2016

---

# Same CSS change on multiple pages

 *  [EnderWiggin](https://wordpress.org/support/users/enderwiggin/)
 * (@enderwiggin)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/same-css-change-on-multiple-pages/)
 * If I want to make the same adjustment on several pages, for example adjust the
   horizontal position of one image that is shown on 5 different pages (i.e., different
   language pages), can I do something like this?
 * body.page-id-1, body.page-id-2, body.page-id-3 .wp-caption {
    position: relative;
   left: -90px; }
 * Or must I define it separately for each page?
 * body.page-id-1 .wp-caption {
    position: relative; left: -90px; }
 * body.page-id-2 .wp-caption {
    position: relative; left: -90px; }

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

 *  [David Gard](https://wordpress.org/support/users/duck_boy/)
 * (@duck_boy)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/same-css-change-on-multiple-pages/#post-3961232)
 * It would be like this –
 *     ```
       body.page-id-1 .wp-caption,
       body.page-id-2 .wp-caption,
       body.page-id-3 .wp-caption{
       position: relative;
           left: -90px;
       }
       ```
   
 * _Please ensure you wrap your code, it makes it easier to read._
 *  Thread Starter [EnderWiggin](https://wordpress.org/support/users/enderwiggin/)
 * (@enderwiggin)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/same-css-change-on-multiple-pages/#post-3961252)
 * Thanks!

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

The topic ‘Same CSS change on multiple pages’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [EnderWiggin](https://wordpress.org/support/users/enderwiggin/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/same-css-change-on-multiple-pages/#post-3961252)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
