I've a little problem with block rotated 90 degrees using css transform.
Challenge lies in the following:
Rotated block is inside 40px vertical column. This means that width of the rotated block in auto mode is not more than 40px. So chunk of text is not placed on one continues line, instead line breaks appear.
To better visualise this problem please check this fiddle I created: http://jsfiddle.net/F7CEX/
#open_nav {
font-family: 'Exo', sans-serif;
font-weight: 300;
font-size: 1em;
display: block;
color: #333333;
text-decoration: none;
background: url("img/menu-s.png") no-repeat 18px -30px transparent;
padding-left: 50px;
padding-right: 19px;
line-height: 40px;
position: absolute;
bottom: 18px;
-webkit-transform: rotate(-90deg);
-webkit-transform-origin: 20px;
-moz-transform: rotate(-90deg);
-moz-transform-origin: 20px;
-ms-transform: rotate(-90deg);
-ms-transform-origin: 20px;
-o-transform: rotate(-90deg);
-o-transform-origin: 20px;
transform: rotate(-90deg);
transform-origin
}
I simply need this text to be a one liner. Any ideas?
Just remove the Position attribute from CSS:-
I think we can solve the problem by using the below styles
In the above styles we can give width as 100% also in case we want the header to be occupying the whole screen.
The above styles are for the anchor tag.
If this is what you want
fiddle
Here's the css only added white space. It comes in continious line. If m missing some point then please clear
Here's the css
Check and let me know if I am missing some thing