Grow your CSS skills. Land your dream job.

Absolutely positioned div on right causing horiz scrollbar

  • # February 26, 2010 at 1:48 pm

    I’m trying to "flank" a centered div with some design elements that are absolutely positioned outside the main div’s width. I’m getting a scroll bar due to the element on the right, but not the element on the left (IE6/7/8, Chrome, Firefox). How can I get rid of that horizontal scrollbar? I still need the page to scroll vertically, so body { overflow: hidden } won’t work.

    Code:



    # February 27, 2010 at 9:43 am

    See Quiz #1 final answers http://www.sitepoint.com/forums/showthread.php?t=618512 from memory, I think position fixed is your only fix. May be wrong.

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".