Get a free trial // Grow your CSS skills // Land your dream job

Add Scroll to Absolutely Positioned Element

  • # June 13, 2013 at 12:58 pm

    I’m working on a tablet-style, responsive online magazine design. One of the things I would like to do is add some content in a box which expands to meet the size of the browser window. I’ve achieved this below, but I’m not sure how to add a scrollbar to this box (#content) if there is overflow… I assume this is because it is absolutely positioned. Is there a workaround?

    # June 13, 2013 at 1:04 pm

    You’re declaring overflow twice: once scroll and then hidden. Just do it once and make it auto.

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed