Here is an example of my HTML code:
<div id="slideClick">
<div style="padding: 0; margin: 0 auto; width: 100%; height: 100%; text-align: center; border: 1px solid blue;">
<span class="sideMsg">MESSAGES</span>
</div>
</div>
This is the corresponding CSS:
.sideMsg
{
color:#333;
-webkit-transform:rotate(90deg);
-moz-transform:rotate(90deg);
-o-transform: rotate(90deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
white-space:nowrap;
display:inline-block;
bottom:0;
font-family: ‘Trebuchet MS’, Helvetica, sans-serif;
font-size:14px;
font-weight:normal;
text-shadow: 0px 0px 1px #333;
border: 1px solid red;
}
#slideClick {
float:left;
height:90px;
width:40px;
background:#EE8D40;
-webkit-border-top-left-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-moz-border-radius-topleft: 10px;
-moz-border-radius-bottomleft: 10px;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
cursor: pointer;
text-align: center;
}
When rendered, it looks like this:
I'm looking for a way to horizontally and vertically center the SPAN
within the blue DIV
. How can I achieve this?