Jump to content

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


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.