Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > HTML / XHTML
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 11-06-2009, 09:48 PM
  #1
Code_worm
Aspirant (Level 2)
 
Join Date: Oct 2009
Location: scotland
Posts: 15
iTrader: (0)
Code_worm is an unknown quantity at this point
Vertically displaying text

Hey guys been having a few problems finding resources on how to vertically align text. what it is is that i have a division i wish to display text in vertically...

Any ideas?
div{vertical-align: -50%}

thats what i came up with but still no joy...
Code_worm is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-07-2009, 05:40 AM
  #2
ringsoft
Deity (Level 17)
 
ringsoft's Avatar
 
Join Date: Oct 2007
Posts: 938
iTrader: (0)
ringsoft will become famous soon enoughringsoft will become famous soon enough
Try adding this -

Quote:
writing-mode: tb-rl;
__________________

www.websitetoolshed.com
ringsoft is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-07-2009, 11:41 AM
  #3
Code_worm
Aspirant (Level 2)
 
Join Date: Oct 2009
Location: scotland
Posts: 15
iTrader: (0)
Code_worm is an unknown quantity at this point
Nope that didn't work, tried it using inline style, external css file and style tag...
Code_worm is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-07-2009, 12:27 PM
  #4
coothead
~ bald headed old fart ~
 
coothead's Avatar
 
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,922
iTrader: (0)
coothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to behold
Hi there Code_worm,

I believe that writing-mode: tb-rl is, at present, IE only.

It is in the W3C CSS3 Working Draft......but does not, as yet, appear to have been adopted by Opera, Safari or Firefox.

I would suggest that you use an image to achieve this effect, assuming that it
is just for a snippet of text rather than the whole page.
__________________
coothead is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-09-2009, 01:11 PM
  #5
Code_worm
Aspirant (Level 2)
 
Join Date: Oct 2009
Location: scotland
Posts: 15
iTrader: (0)
Code_worm is an unknown quantity at this point
Yeah i looked at the writing mode thing... i will try an image if all else fails but just to make it clear i wish to display text vertically in this format

T
E
X
T
Code_worm is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-09-2009, 05:56 PM
  #6
coothead
~ bald headed old fart ~
 
coothead's Avatar
 
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,922
iTrader: (0)
coothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to behold
Hi there Code_worm,

here is an example of that type of vertical text for you to play with...
Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="language" content="english"> 
<meta http-equiv="Content-Style-Type" content="text/css">

<title></title>

<style type="text/css">
#span1 {
    float:left;
    line-height:60px;
    margin-right:100px;
    padding:10px;
    border:3px double #999;
 }
#span2 {
    float:left;
    padding:5px;
    border:3px double #600;
    font-family:'times new roman',serif;
    color:#600;
 }
</style>

</head>
<body>

<div>
<span id="span1">T<br>E<br>X<br>T</span>
<span id="span2">T<br>E<br>X<br>T</span>
</div>

</body>
</html>
__________________
coothead is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 12:57 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.