I would like to vertically align the rotated text in the middle of 100% of the height of the div, as shown below.
Therefore, whenever the screen size changes, the text remains in the middle of the div.
Does anyone have a solution for this?

http://jsfiddle.net/SVkPU/1/
.rotate-270 { -o-transform: rotate(270deg); -moz-transform: rotate(270deg); -webkit-transform: rotate(270deg); transform:rotate(270deg); } .left { float:left; background:#000; color:#fff; text-align:center; height:50px; } .right { float:right; background:#000; color:#fff; }
source share