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?

    http://codepen.io/anon/pen/hAvJw

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

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