I have this div
:
HTML:
<div draggable="false" id="coffe">Free coffee</div>
CSS:
div {
position: absolute;
overflow: auto;
text-align: left;
font-size: 23px;
color: rgb(26, 66, 108);
font-family: roboto, Helvetica;
font-style: normal;
font-weight: bold;
-webkit-transition: none;
transition: none;
left: 0px;
top: 67.125px;
width: 1029.25px;
height: 234.93749999999997px;
opacity: 1;
background: grey;
}
And I need to vertically center its content, which is "free coffee".
How can I do this? I tried with vertical-align: middle;
but it doesn't work.
This is the fiddle file: http://jsfiddle.net/2Mb39/
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…