Jump to content
xisto Community
Sign in to follow this  
hazemmostafa

Vertical Text kinda OLD but amazing

Recommended Posts

Hello ,Do you guys remember the vertical text javascript It's cool Here is the code first the style in <Head>

<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>

<script type="text/javascript">//Enter desired vertical text:var myverticaltext='<div class="verticaltext">This is The Vertical Text <a href="http://forums.xisto.com/ Host .</a></div>'var bodycache=document.bodyif (bodycache && bodycache.currentStyle && bodycache.currentStyle.writingMode)document.write(myverticaltext)</script>

Hope you like it ...

Share this post


Link to post
Share on other sites

The code works only for IE, look here:
http://www.activewidgets.com/javascript.fos-style-in.html
to know why.

try by your self with this:

<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!
Edited by develCuy (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.