Lets say i got this div
<div>
Convert This into a vertical Text
</div>
While searching for a way in which i can convert this text into a vertical text.
I found out something like this :
$('div').html($('div').text().replace(/(.)/g,"$1<br />"));
This works.
But is there a better way of doing this ?
put a space between each character, and then give the div a very narrow width see this fiddle
http://jsfiddle.net/3dFgg/1/