Content Width in Full-Width layout

Front page Support Forums Kanso Theme Support Content Width in Full-Width layout

This topic contains 3 replies, has 2 voices, and was last updated by  satori 3 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3038

    rotkreis
    Participant

    Hello, I want to change the max-width of the post content and the comment box in full-width layout, for sometimes the lines are a bit too wide. I tried to change the max-width of div content or post-wrapper from 960px to, for example, 760px, but the problem is that I cannot make the post content centered. I guess this has something to do with the responsive design, but I am unfamiliar with that.

    Thank you!

    #3043

    satori
    Member

    Hey Rotkreis,

    have you tried this CSS?

    body .container { max-width: 760px; } 
    

    The container element should center itself automatically because it has “auto” side margins.

    Sincerely,
    Andrii / Satori Studio

    #3053

    rotkreis
    Participant

    Hi, I’ve tried something llike this, but it will also change the view of other pages. The positions of headers and logo in the front page are also changed. Is there a solution that only changes the layout of the full-width page?

    Thanks

    #3057

    satori
    Member

    Hey Rotkreis,

    please try this CSS then:

    .page-template-page_full-width-php .container { max-width: 760px; }
    

    Sincerely,
    Andrii / Satori Studio

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.