[Support request] CSS help for content width

Home Forums Support [Support request] CSS help for content width

Home Forums Support CSS help for content width

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1623121
    Paul

    Hello,

    I’m trying to change a single page to width of 1170px but I have some custom css which is causing me some problems.

    This is the custom css I added previously which is in use on several pages –

    body.no-sidebar .site.grid-container {max-width: 800px}

    This css is over riding any other width settings, is there a way of changing this for a specific post?

    I tried over riding with this but no joy.

    .page-id-11465 body.no-sidebar .site.grid-container {
        max-width: 1170px!important;
    }

    Please advise

    #1623644
    David
    Staff
    Customer Support

    Hi there,

    page-id-xxx classes are also a body class, so try:

    body.page-id-11465  .site.grid-container {
        max-width: 1170px!important;
    }
    #1623728
    Paul

    I’m actually using a post for this and have the following which is not working.

    body.post-id-20044  .site.grid-container {
        max-width: 1170px!important;
    }

    Post URL has been added below.

    #1623765
    David
    Staff
    Customer Support

    Can you disable you cache plugin i can see why its not applying ?

    #1623767
    Paul

    Done

    #1623777
    David
    Staff
    Customer Support

    That link you provided is actually a post with a different ID – so the CSS for that would be:

    body.postid-20044  .site.grid-container {
        max-width: 1170px!important;
    }
    #1623783
    Paul

    Sorry about that – works perfectly now. Thanks

    #1623804
    David
    Staff
    Customer Support

    No problems – glad to be of help

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.