WordPress.org

Ready to get started?Download WordPress

Forums

Width so sidebar hidden first (5 posts)

  1. jhaber31
    Member
    Posted 3 years ago #

    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.

  2. 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

  3. jhaber31
    Member
    Posted 3 years ago #

    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:

    http://www.haberarts.com/

  4. 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.

  5. jhaber31
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags