Lamez Posted March 16, 2008 Share Posted March 16, 2008 How would I make vertical text? Should I go CSS, I bet JS is the best way to go. Example: T E X T -Thanks Link to comment https://forums.phpfreaks.com/topic/96365-vertical-text/ Share on other sites More sharing options...
nogray Posted March 17, 2008 Share Posted March 17, 2008 <div id="my_vertical_txt"></div> <script type="text/javascript"> var str = "TEXT"; var txt = ""; for (i=0; i<str.length; i++) txt += str.charAt(i)+"<br />"; document.getElementById('my_vertical_txt').innerHTML = txt; </script> Not tested. Link to comment https://forums.phpfreaks.com/topic/96365-vertical-text/#findComment-494153 Share on other sites More sharing options...
haku Posted March 18, 2008 Share Posted March 18, 2008 You could maybe do it with CSS. Set the element to have a width of 1 em, and that may force each letter downwards. I've never tried it out though. Link to comment https://forums.phpfreaks.com/topic/96365-vertical-text/#findComment-494595 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.