bluetoother Posted September 17, 2007 Share Posted September 17, 2007 i use ( overflow:scroll ) in a div tag style to contain all the text the div tag with a scroll barsbut i only need a vertical scroll bar ,and in my case i get both vertical and horizental scroll barsaby body know how to show the vertical one only ? Link to comment Share on other sites More sharing options...
Err Posted September 17, 2007 Share Posted September 17, 2007 Maybe the content inside the <div> has things extending passed your width for your <div>. Try extending your width on your <div> and see if anything changes. Link to comment Share on other sites More sharing options...
bluetoother Posted September 18, 2007 Author Share Posted September 18, 2007 i found the answer in googlei have to use overflow:autoand when the div tag contain text larger than it's heightthe vertical scroll bar will appear Link to comment Share on other sites More sharing options...
Err Posted September 18, 2007 Share Posted September 18, 2007 I'm sorry, I failed to notice your code, obviously I wasn't awake when I posted that. Otherwise I would have been more helpful. lol Link to comment Share on other sites More sharing options...
SySRoot74 Posted September 19, 2007 Share Posted September 19, 2007 i found the answer in googlei have to use overflow:autoand when the div tag contain text larger than it's heightthe vertical scroll bar will appearWon't that only work in *some* browsers?Typically you should use:overflow-y: scroll;overflow-x: hidden; Solved Link to comment Share on other sites More sharing options...
Jonas Posted September 19, 2007 Share Posted September 19, 2007 Won't that only work in *some* browsers?Typically you should use:overflow-y: scroll;overflow-x: hidden; Solved Overflow:auto; should work in *all* browsers...http://www.quirksmode.org/css/contents.html#link4 Link to comment Share on other sites More sharing options...
SySRoot74 Posted September 19, 2007 Share Posted September 19, 2007 Overflow:auto; should work in *all* browsers...http://www.quirksmode.org/css/contents.html#link4 Odd, I remember sometimes in past experience it hadn't exactly worked the way I intended (i.e.: It was nearly identical to overflow: visible). Maybe I'm wrong. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.