![]() |
I need help aligning rotated text
So I'm trying to make a 3 item list with the text rotated and aligned to the top. My text is rotated 90 degrees counter clockwise like it is suppose to but it aligns to the bottom or what would be the left side if it wasn't rotated. I want it to line up to the top with out absolute positioning. I've tried text-align to no avail. Any help would be appreciated.
Here is the html: Code:
<div class="navbar" style="background-color:#900;margin-left:10px;"><a class="nav">Merchandise</a></div>Code:
.navbar {width: 40px;Code:
.nav {display: block;EDIT: Here's a link to a skeleton of it. http://home.ite.sfcollege.edu/~richa...ng/index2.html I want the text aligned to the top of the colored bars. Also you might notice I'm using a bunch of padding to make the bars fill up space, any ideas to make this better would be great too. Thanks. |
It might be easier on you to rotate 270 degrees. The text will line up like you want, but will read from top to bottom.
You could also try to position each text individually instead of all three together with the .nav class. Code:
.nav1{Code:
<div id="leftcolumn"> |
Thanks, I ended up just using absolute positioning but did create separate nav classes.
I agree about the <a> thing, it'll become a link later when I create the pages. |
Well after testing it and having it look 4 different ways in 4 different browsers I think I'm just going to go with images. I'll probably keep a copy of it with css though just to see if I can get it to work consistently.
|
| All times are GMT +1. The time now is 03:56 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.