How to wrap long text inside a div without scroll
css, html
Solution
Try this:-
word-wrap: break-word;
DEMO: http://jsfiddle.net/dwebexperts/thyD9/
Problem
``` <div style="width:200px; margin:0 auto;"> 01234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921......... </div> ``` The above code is showing a long scrollbar. I want to keep it inside the div's declared width (`width: 200px;`) without scrolling. I have tried float, display, position, overflow, but nothing works here.