• Resolved mahendar

    (@mahendar)


    Hello.I would like to have a home page that captures the whole width,but the blog width should remain same.Currently the full width page is good but I want to set the width to more than that. Can I achieve this using css? Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi, Go to Appearance / Customize / Custom CSS
    To change the page width, enter:
    #main {max-width:100%}

    The left and right columns are % not fixed width, so adjust to suit, for example:
    .layout-sc #sidebar-primary{width:30%}
    .layout-sc #content{width: 70%}

    Alternatively you can use px instead of % if you wish but then your site will not respond to different display widths.

    Thread Starter mahendar

    (@mahendar)

    Thanks Lorro. The homepage’s width has been changed but the blog’s width has too become 100% and

    .layout-sc #sidebar-primary{width:30%}
    .layout-sc #content{width: 70%}

    didn’t change the blog’s width.

    Hi, Please post the url to the page.

    Thread Starter mahendar

    (@mahendar)

    Homepage is mahendhar.mistblogs.com

    Blog page is here

    Hi, My content is on the right. Upon investigation, when the content is on the left like your site, the “sc” bit needs to be “cs”:
    .layout-cs #sidebar-primary {width:30%}
    .layout-cs #content {width:70%}

    Thread Starter mahendar

    (@mahendar)

    Sorry for the late reply.

    @lorro,thanks for your time,but that too didn’t work. I am using a frontend builder to create the home page and hence it need to be 100% wide to look good.

    Is there any other way?

    Hi, Sorry I am not familiar with the frontend builder. The technique that I use for css issues is to bring up the page in Chrome, right click on the part of the page that is not how you want it, then click on Inspect element. Look at the series of elements in the Elements tab. You can edit the styles in-situ in the panel on the right and see what works. Good luck!

    Try this:

    body.home #main {
        max-width: 100%;
    }
    
    body.home #content {
        padding: 0;
    }

    Thread Starter mahendar

    (@mahendar)

    Many thanks @batharoy,that worked.

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

The topic ‘Full width home page,current width blog page’ is closed to new replies.