Title: CSS for one page
Last modified: August 20, 2016

---

# CSS for one page

 *  [TJA](https://wordpress.org/support/users/tja/)
 * (@tja)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/css-for-one-page/)
 * Hello,
 * On my website, [http://www.londonmedwayairport.com](http://www.londonmedwayairport.com),
   I’m trying to have a different part of the CSS for one page, so that I can make
   the page container bigger just on that page. I want to do it for this page: [http://www.londonmedwayairport.com/map-test/](http://www.londonmedwayairport.com/map-test/)
 * I’ve already edited the CSS for the width of the content, but I need to make 
   the white background container bigger.
 * How do I do it?
 * Thanks.

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 9 months ago](https://wordpress.org/support/topic/css-for-one-page/#post-3036041)
 * > I’ve already edited the CSS for the width of the content,
 * Can you provide this CSS?
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 9 months ago](https://wordpress.org/support/topic/css-for-one-page/#post-3036042)
 * You’ve set a width of 770 pixels to this white background;
 *     ```
       .type-page {
        width: 770px;
        background: white;
        ...
       }
       ```
   
 * You need to remove this width or expand it.
 * More info on widths at
    [http://www.w3schools.com/cssref/pr_dim_width.asp](http://www.w3schools.com/cssref/pr_dim_width.asp)
 *  Thread Starter [TJA](https://wordpress.org/support/users/tja/)
 * (@tja)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/css-for-one-page/#post-3036044)
 * [http://londonmedwayairport.com/wp-content/themes/gridly/css/light.css](http://londonmedwayairport.com/wp-content/themes/gridly/css/light.css)
 * `.gridly-copypage { width:930px; margin-left:auto; margin-right:auto; padding-
   top:20px; padding-bottom:20px; overflow:hidden }`
 * That’s for the actual content container been set for the page template I’m using
   for the page, which has gone in the template php file, but I’m not sure what 
   code I need just for that.
 * I want a custom width just for that page, using the 770 for every other page.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 9 months ago](https://wordpress.org/support/topic/css-for-one-page/#post-3036045)
 * Your `<body>` element has these classes, `page page-id-33 page-template page-
   template-page_mappage-php` of the map page.
 * Find out which class is unique to that page and prepend that to your CSS selector.
 *  Thread Starter [TJA](https://wordpress.org/support/users/tja/)
 * (@tja)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/css-for-one-page/#post-3036046)
 * I put in these ones in trying to sort it: page-id-33 page-template page-template-
   page_mappage-php
 * So I’m not sure which class I should actually use, or where to put it.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 9 months ago](https://wordpress.org/support/topic/css-for-one-page/#post-3036049)
 * Prepend one unique class to the CSS [selector](http://www.w3schools.com/cssref/css_selectors.asp)
   in my second post.
 *  Thread Starter [TJA](https://wordpress.org/support/users/tja/)
 * (@tja)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/css-for-one-page/#post-3036052)
 * So I would put?
 * .page-id-33 {width:930px; margin-left:auto; margin-right:auto; padding-top:20px;
   padding-bottom:20px; overflow:hidden }
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 9 months ago](https://wordpress.org/support/topic/css-for-one-page/#post-3036053)
 * Try adding
 *     ```
       .page-id-33 .type-page {
        width:930px;
        ...
       }
       ```
   
 *  Thread Starter [TJA](https://wordpress.org/support/users/tja/)
 * (@tja)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/css-for-one-page/#post-3036054)
 * Thanks that’s great, thanks again for your help.

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

The topic ‘CSS for one page’ is closed to new replies.

 * 9 replies
 * 2 participants
 * Last reply from: [TJA](https://wordpress.org/support/users/tja/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/css-for-one-page/#post-3036054)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
