HTML CSS examples for CSS Layout:Position
Rotated Tab with Transform:rotate Positioning
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #my-tab, #my-tab .slick-tab {<!-- w ww . ja va 2 s . c om--> border:4px solid Chartreuse; } .dc-slick.slick-right, .dc-slick.slick-right .slick-tab-0 { border-right:none !important; } .dc-slick.slick-right { right:0; } #my-tab.slick-right .slick-tab { left:4px; margin-top:-4px; } #my-tab .slick-tab, #my-tab .slick-tab-image { background-color:yellow; color:blue; } .dc-slick.slick-right .slick-tab-270 { border-bottom:none !important; } .dc-slick.slick-right .slick-tab, .dc-slick.slick-left .slick-tab, .dc-slick.slick-right .slick-tab-image, .dc-slick.slick-left .slick-tab-image { top:0; } .dc-slick .slick-tab, .dc-slick .slick-tab-image { cursor:pointer; font-size:13px; line-height:13px; font-weight:bold; } .dc-slick .slick-tab div { padding:11px; } </style> </head> <body> <div id="my-tab" class="dc-slick slick-right slick-align-top active" style="float: none; position: fixed; z-index: 10001; margin-right: 0px; top: 50px; "> <div class="slick-tab slick-tab-270 slick-tab-open" style="background-image: none; background-color: rgb(102, 255, 0); border: 3px solid rgb(0, 0, 0); padding: 0px !important; -webkit-transform-origin: 0% 100%; -webkit-transform: rotate(270deg);-moz-transform-origin: 0% 100%; -moz-transform: rotate(270deg); -ms-transform-origin: 0% 100%; -ms-transform:rotate(270deg); trasnform-origin: 0% 100%; transform:rotate(270deg); width: 100px; text-align: center; height: auto; position: absolute; margin-left: -3px; margin-top:68px; "> <div> Lorem ipsu </div> </div> <div class="dc-slick-content" style="width: 250px; height: 203px; "> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl </div> </div> </body> </html>