View Single Post
Old 06-30-2012, 02:50 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,383
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
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{
	display: block;
	position: relative;
	top: 70px;
	white-space: nowrap;
	-webkit-transform: rotate(-90deg);
	-webkit-transform-origin: bottom right;
	-moz-transform: rotate(-90deg);
	filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
.nav2{
	display: block;
	position: relative;
	top: 100px;
	white-space: nowrap;
	-webkit-transform: rotate(-90deg);
	-webkit-transform-origin: bottom right;
	-moz-transform: rotate(-90deg);
	filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
.nav3 {
	display: block;
	position: relative;
	top: 60px;
	white-space: nowrap;
	-webkit-transform: rotate(-90deg);
	-webkit-transform-origin: bottom right;
	-moz-transform: rotate(-90deg);
	filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
for HTML:
Code:
<div id="leftcolumn">
<div class="navbar" style="background-color:#900;margin-left:10px;"><h3 class="nav1">Merchandise</h3></div>
<div class="navbar" style="background-color:#090;"><h3 class="nav2">Training Boards</h3></div>
<div class="navbar" style="background-color:#009;"><h3 class="nav3">Contact Us</h3></div>
</div>
I don't like using <a> for the text. <a> is for an anchor!

Last edited by sunfighter; 06-30-2012 at 02:59 PM..
sunfighter is offline   Reply With Quote