This entry was posted on Thursday, April 29th, 2010 at 5:10 pm and is filed under Web Space Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


My Space Proxy
Ultimate Web Space Tools for any Skill Level
web programming and design, html error in style tag?
i wanna add horizontal scroll bar to a div, im using ‘overflow=auto ‘ and ‘ white-space=no wrap’ in style tag but it doesn’t work what should i do?
Make sure you are using a correct syntax:
<div style="width: 200px; height: 200px; border-style: solid; border-width: thin; overflow: auto; white-space: nowrap"> … </div>
This is the correct syntax:
overflow: auto; white-space: nowrap
This is NOT correct:
overflow= auto; white-space= no wrap
It worked fine with my IE.
3 Responses to “web programming and design, html error in style tag?”
Leave a Reply

April 29th, 2010 at 10:15 pm
you can set overflow: auto and give a maximum fixed height and width.
there are options in proposed CSS3 extension to set scrollbars independently
overflow: auto;
overflow-y: hidden;
for IE8:
-ms-overflow-y: hidden;
References :
April 29th, 2010 at 10:48 pm
maybe this will give you some ideas
http://www.echoecho.com/dzine01002.htm
References :
April 29th, 2010 at 11:20 pm
Make sure you are using a correct syntax:
<div style="width: 200px; height: 200px; border-style: solid; border-width: thin; overflow: auto; white-space: nowrap"> … </div>
This is the correct syntax:
overflow: auto; white-space: nowrap
This is NOT correct:
overflow= auto; white-space= no wrap
It worked fine with my IE.
References :