• David_G

    (@questas_admin)


    Is there a way to set the maximum width of a page and post? Currently the max width is conflicting with a special background. Can’t post the link as it is a private family site. I am using full width layout.

Viewing 7 replies - 1 through 7 (of 7 total)
  • hlanggo

    (@hlanggo)

    I’m looking for similar solution as well.

    I want to limit page / post width to 60em since the optimum readability length is 50 to 60 characters.

    rxa

    (@rxa)

    Sure, set the container to a width of whatever you require.

    50 to 60 characters is fine as a base average, but be aware the user or browser should be able to scale up the text size + down as they require which pushes your character count out of the window. Nothing wrong with using your average character count as a base, just design with accesibility in mind. This is also assuming you don’t want your theme to be responsive.

    hlanggo

    (@hlanggo)

    Wouldn’t using “em” make page/post width scale with text size?

    I already tried placing in custom css:

    div.entry-content {max-width: 60em;}

    Nothing happened.

    rdellconsulting

    (@rdellconsulting)

    Try this post

    hlanggo

    (@hlanggo)

    Ah. It’s div#content.span9.article-container that controls post and page width.

    Max-width attribute doesn’t seem to work with it. And it won’t accept measurements in em.

    hlanggo

    (@hlanggo)

    OK. I think I got it. I added the following to custom css.

    #content {
    max-width: 30em;
    }

    See: http://www.crownegardenhotel.com/

    Now, I need to figure out how to center…

    hlanggo

    (@hlanggo)

    div.container {
        max-width: 54em;
        margin-right: auto;
        margin-left: auto;
    }
    
    #content {
        max-width: 34em;
    }

    I think this is it. I have tested it in Google Chrome, Firefox, Safari, IE (all latest versions).

    div.container – to center it
    #content – to keep page/post at more or less optimal reading length.

    50em and 30em would have been better but I had a page title that was too long which made the comment bubble overlap.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘page/post width’ is closed to new replies.