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 Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/96365-vertical-text/#findComment-494595 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.