• Resolved josephare

    (@josephare)


    Hello,

    Test site here: https://www.otlmm.com/otlmmwp

    When I test the site on mobile, the content area does not scale down to fit the small window, it stops at approx 760px (which would be where the mobile menu takes over). But the content should continue to scale, but it does not, and I have tried many changes to no avail.
    I’m using a child theme.

    Any help would be appreciated.
    – Joe

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi josephare,

    Looks like you need to make sure all your divs are fluid:

    .site-content
    {
    max-width:900px;
    width:100%;
    }
    Thread Starter josephare

    (@josephare)

    thanks, just tried that but nothing changed.

    the css on your site i see is:

    .site-content {
    margin: 24px 0 0;
    /* margin: 1.714285714rem 0 0; */
    padding: 0px 0px 0px 0px;
    background-color: #000050;
    color: #fff;
    width: 900px;
    }

    change it to:

    .site-content {
    margin: 24px 0 0;
    /* margin: 1.714285714rem 0 0; */
    padding: 0px 0px 0px 0px;
    background-color: #000050;
    color: #fff;
    max-width: 900px;
    width:100%;
    }
    Thread Starter josephare

    (@josephare)

    This is what it looks like now:

    /* 12.1 Minimum width of 770 pixels */
    @media screen and (min-width: 770px) {
    .author-avatar {
    float: left;
    margin-top: 8px;
    margin-top: 0.571428571rem;
    }
    .author-description {
    float: right;
    width: 80%;
    }
    .site {
    margin: 0 auto;
    max-width: 960px;
    width:100%;
    /*max-width: 68.571428571rem;*/
    overflow: hidden;

    }
    /* affects only blog post pages */
    .site-content {
    float: left;
    width: 65%;
    }
    body.template-front-page .site-content,
    body.attachment .site-content,
    body.full-width .site-content {
    width: 100%;
    }
    .widget-area {
    float: right;
    width: 30%;
    }
    .site-header {
    text-align: center;
    }

    Thread Starter josephare

    (@josephare)

    where do you see that code?

    Thread Starter josephare

    (@josephare)

    Found it, it’s fixed, thanks for the help!!

    you can add it in that media query or you can edit the media=all. This would be best as it is fluid across all screen resolutions. But that is definitely your problem because you have a fixed width of 900px on site-content div.

    You can try adding importance to it

    .site-content
    {
    width:100% !important;
    max-width:900px;
    }

    Thread Starter josephare

    (@josephare)

    it’s def best in global site-content, I just missed it, thanks again!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Content Area not scaling for mobile’ is closed to new replies.