I think you are trying to do something like this. Please note: there is no need to add height / width of the set, as the translate and transform-origin values will dynamically adjust the positioning.
JSFiddle Demo
CSS
* { margin: 0; padding: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } #rotate { position:fixed; transform: rotate(-90deg) translateX(-100%); transform-origin:left top; background-color:#e1e1e1; }
source share