Jump to content

Disabling the sidescroll on a div wiht overflow: scroll and no set width


cooldude832

Recommended Posts

I think the title is pretty descriptive, but I have a div in my content area (the whole layout fills 95% of any screen so thus the content as no defined width)

and this div fills up the content with a 1em padding all around, and in the css has

overflow: scroll;

 

It looks nice and all and does what I want, however I don't want the side scroll.  I know if i define its width I can disable this, but I don't want to do this either any ideas?

firfox will only show teh scroll bar it needs, ie will show both horizontal and vertical if given overflow: scoll;

 

what you will need is overflow-y: scroll but only in ie so either use a hack or a conditional if statement to include you ie css files

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.