|
|
|
|
![]() ![]() |
Apr 29 2007, 08:25 PM
Post
#1
|
|
|
Member [ Level 2 ] Group: Members Posts: 51 Joined: 29-April 07 From: EGYPT Member No.: 21,716 |
Hello ,
Do you guys remember the vertical text javascript It's cool Here is the code first the style in <Head> CODE <style type="text/css"> .verticaltext{ font: bold 13px Arial; position: absolute; right: 3px; top: 20px; width: 15px; writing-mode: tb-rl; } </style> then the text in <Body> CODE <script type="text/javascript"> //Enter desired vertical text: var myverticaltext='<div class="verticaltext">This is The Vertical Text <a href="http://www.astahost.com">Asta Host .</a></div>' var bodycache=document.body if (bodycache && bodycache.currentStyle && bodycache.currentStyle.writingMode) document.write(myverticaltext) </script> Hope you like it ... |
|
|
|
Apr 29 2007, 11:02 PM
Post
#2
|
|
|
Member - Active Contributor Group: Members Posts: 88 Joined: 5-April 07 From: Cusco - Peru Member No.: 21,283 |
The code works only for IE, look here:
http://www.activewidgets.com/javascript.fo...s-style-in.html to know why. try by your self with this: CODE <html> <head> <style type="text/css"> .verticaltext{ font: bold 13px Arial; position: absolute; right: 3px; top: 20px; width: 15px; writing-mode: tb-rl; } </style> </head> <body> <div class="verticaltext">ASU!1! vertical text</div> </body> </html> Don't worry, Firefox 3 will soon be available and we all will enjoy CSS3. Blessings! This post has been edited by develCuy: Apr 29 2007, 11:04 PM |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 2nd December 2008 - 12:21 AM |