Viewing 9 replies - 1 through 9 (of 9 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I’ve already edited the CSS for the width of the content,

    Can you provide this CSS?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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

    Thread Starter TJA

    (@tja)

    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

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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

    (@tja)

    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

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Prepend one unique class to the CSS selector in my second post.

    Thread Starter TJA

    (@tja)

    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

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try adding

    .page-id-33 .type-page {
     width:930px;
     ...
    }

    Thread Starter TJA

    (@tja)

    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.