Web Design

Only members of this group can post notes and use other group resources. Join now to get access to all group resources!
Log in or register to join this group

Cascade Style Sheet (CSS)  Rotating text vertically in HTML table  Viewed 45025 time(s), 2 post(s)., 1/6/2014 1:44:23 AM - by Jack

Jack 1/6/2014 1:44:23 AM

Is there a way to rotate the text inside <td> cell 90 degrees?

This content has not been rated yet. 
31 Reputation 2 Total posts
Sam 1/6/2014 1:47:15 AM

I found this code. I hope it will help

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>CSS rotation test</title>
body {
#text {
   border:1px solid rgba(0,0,0,0.5);
   margin:20px auto;
   box-shadow:inset 0 0 10px rgba(0,0,0,0.6),
                    0 0 10px rgba(0,0,0,0.6);
#text span {
   transform-origin:0 0;
   -webkit-transform-origin:0 0;
<div id="text">
  <span>Lorem ipsum</span>

This content has not been rated yet. 
233 Reputation 37 Total posts