Jump to content

Problem with ScrollBars and DIV's


Recommended Posts

Hey Guys, Still facing the same problem as a topic i posted before.... I thought maybe a image may help a bit to explain.

I have a DIV that is resized via JS (which works fine) but when the DIV is resized to a height that is smaller than the content the scroll bars appear horizontal and vertical as shown in the image bellow.

The content box inside the DIV has the width of 100%

The problem is that i dont want the horizontal scrollbar to appear unless the width of the text inside the container is larger than the width of the resizable DIV.

Sorry it's confuzing i know... but im confused tried many ways and just cant seem to get it done! :(

p.s. i don't want to use the method of overflow-x:hidden;

Thank you in advance, Chris.

[img src=\"http://www.chrisdarl.be/hellppp.jpg\" border=\"0\" alt=\"IPB Image\" /]
Link to comment
Share on other sites

  • 3 weeks later...
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.

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.