Here is my current progress: http://jsfiddle.net/2Zrx7/2/
.events{
height:100px;
position: relative;
}
.tt_username{
position: absolute;
top:0px;
height: 100%;
width: 30px;
background: #ccc;
text-align: center;
}
.tt_username p{
-webkit-transform: rotate(270deg);
-moz-transform: rotate(270deg);
-ms-transform: rotate(270deg);
-o-transform: rotate(270deg);
transform: rotate(270deg);
background: #ff0000;
font-size: 16px;
}
I am looking for a way to center the text inside the gray div. Even though the div's height remains constant, the text is dynamically generated through ajax. Due to this reason, I don't think the transform origin will help solve it. I prefer a CSS solution, but open to using JavaScript as well.