• If I change the browser from full screen to variable width and thus allow myself to shrink it, first of course the margins shrink. But once I run out of margins, it eats into both the content and sidebar. I see on other sites that it sacrifices the sidebar first. What controls that?

    I see that the other sites when I view code still seem to specify both a width for the header (and thus total of content and sidebar) and a width for the sidebar. I also tried removing the width of the sidebar from my css, but that didn’t do it.

    There’s also a wrapper, and of course I do want to keep control so that the sidebar doesn’t sudden drop below or protrude into content, so I’ll stay fixed rather than fluid width. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • a: please post a link to your site;

    b: please post link(s) to the ‘other’ site(s)

    Twenty Eleven for instance uses the ‘responsive structure’ section in the last third of style.css

    generally, this is a css problem, not wordpress related

    Thread Starter jhaber31

    (@jhaber31)

    Oh, absolutely it’s a css question, and I’m grateful if it’s ok to pose that in the use of WordPress to build the site:

    https://www.haberarts.com/

    find this in style.css:

    /* #rap style added by DF */
    #rap {
           padding: 0;
           width: 900px;
           position: relative;
           left : 50%;
           margin-left: -450px;
    }

    and change to:

    /* #rap style added by DF */
    #rap {
           padding: 0;
           width: 900px;
           margin: 0 auto;
    }

    if you resize the browser window, the content should stop at the left edge, and the sidebar should disappear first.

    Thread Starter jhaber31

    (@jhaber31)

    Thanks. To be honest, when I looked at the wrapper specs yesterday, and could not remember what the designer I worked with meant them to do, and I still don’t. It has me puzzled, although I do recall their being added to solve . . . I don’t know. I’ll give it a try later and see what happens.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Width so sidebar hidden first’ is closed to new replies.