css - Rotate Text in Bootstrap in different col sizes -
i'm having lot of different col sizes, when place follow code in there, rotated text different in every col.
css:
.verticaltext { position: relative; } .verticaltext_content { -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); -ms-transform: rotate(-90deg); -o-transform: rotate(-90deg); filter: progid:dximagetransform.microsoft.basicimage(rotation=3); left: -60px; top: 35px; position: absolute; color: #fff; text-transform: uppercase; }
i want in every col:
your code pretty functional. of course, have not included html, or bootstrap matter, it's little hard decifer having trouble. said, here's little css layout similar of image.
i've added padding left of text , minimum height text on left won't overlap. obviously, both may have adjusted fit needs.
body { background:#000; color:#fff; font-family:arial, sans-serif; } .verticaltext { position: relative; padding-left:50px; margin:1em 0; min-height:120px; } .verticaltext_content { -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); -ms-transform: rotate(-90deg); -o-transform: rotate(-90deg); filter: progid:dximagetransform.microsoft.basicimage(rotation=3); left: -40px; top: 35px; position: absolute; color: #fff; text-transform: uppercase; font-size:26px; font-weight:bold; }
here fiddle demonstration.
Comments
Post a Comment