poleposters Posted September 17, 2008 Share Posted September 17, 2008 Hi, I've got a div that contains text retrieved from a database. I want to ensure that the text deosn't overflowfrom the div even if this means that some of the text can'tbe read. Is there a way to this? The div has width and height.I wouldof thought that would be enough. thanks Quote Link to comment Share on other sites More sharing options...
F1Fan Posted September 17, 2008 Share Posted September 17, 2008 Use the CSS "overflow" property: Example div{ overflow: scroll; } Possible Values visible - Default. The content is not clipped. It renders outside the element hidden - The content is clipped, but the browser does not display a scroll-bar to see the rest of the content scroll - The content is clipped, but the browser displays a scroll-bar to see the rest of the content auto - If the content is clipped, the browser should display a scroll-bar to see the rest of the content Quote Link to comment Share on other sites More sharing options...
poleposters Posted September 17, 2008 Author Share Posted September 17, 2008 Great! Thanks very much. That a better solution than I'd hoped. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.