I'm trying to get the text to appear vertically in my list item. Several websites such as http://www.css3maker.com/text-rotation.html# have directed me to use the following: -ms-transform: rotate(90deg); /* IE 9 / -webkit-transform: rotate(90deg); / Chrome, Safari, Opera */ transform: rotate(90deg);
I've placed this in my css file, but visual studio 2010 provides the warnings:
- Validation (CSS 3.0): 'rotate(90deg)' is not a valid value for the '-webkit-transform' property.
- Validation (CSS 3.0): 'rotate(90deg)' is not a valid value for the 'transform' property
Why am I getting this warning? If I ignore it then it doesn't work, I don't get a warning for the -ms-transform, but it doesn't appear to work in IE anyway.
Here's my code: CSS:
li.menu_label > span
{
-ms-transform: rotate(90deg); /* IE 9 */
-webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
transform: rotate(90deg);
}
HTML:
<ul id="nav">
<li>
<label class="menu_label" for="c1"> <span>Menu</span></label>
<input type="checkbox" id="c1" />
</li>
</ul>
Turns out this was working regardless of the warnings, just not in google chrome. Needed to add "display: inline-block" CSS3 transform not working