View Full Version : Div Box WordWrap


rundellt2000
04-22-2003, 10:38 AM
Hi! I made the code with a Div Align (very good :) ) but having a problem: the text won't scroll DOWNWARDS! It doesn't have word wrap! So, it keeps going along the lign! The only way to cure is using <br> tags :(. Anyone know how to turn on word wrap for a div box? Thanx in advance.

Sheila
04-22-2003, 10:42 AM
Try adding overflow: auto; to the code if it isn't already there.

rundellt2000
04-22-2003, 10:45 AM
PROBLEM!!!! It is already there, but *dun dun duuuun* that makes the text scroll this way --------> :@ NOT HAPPY!

Sheila
04-22-2003, 10:58 AM
This is the code I used and it works like it should


<DIV id="name" style="position: absolute; top: 100px; width:100px; left: 100px; height:380px; overflow: auto;" align=left>All your text here</DIV>

Of course you can change the align and the numbers to what you want.


(see example: http://www.geocities.com/metalheadpeter//test.html)

rundellt2000
04-22-2003, 11:01 AM
THANKYOU!THANKYOU!THANKYOU!THANKYOU!THANKYOU!THANK YOU!THANKYOU!THANKYOU!THANKYOU!THANKYOU!THANKYOU!T HANKYOU!THANKYOU!THANKYOU!THANKYOU!

Sheila
04-22-2003, 11:02 AM
Welcome :D