Keep text on left and middle of the div, not center
Posted
by Jean
on Stack Overflow
See other posts from Stack Overflow
or by Jean
Published on 2010-04-19T06:43:44Z
Indexed on
2010/04/19
6:53 UTC
Read the original article
Hit count: 183
css
Hello,
I want to be able to keep a text on the left, but in the middle of a div.
<div id=sel>text goes here</div>
and my CSS for the same
sel{
text-align:left;
vertical-align:middle;
}
The characters and lines of the text may vary. I am more focussed on the text with a single line that sits on the top. I do not want to use position:absolute/relative.
Appreciate all help.
Thanks Jean
© Stack Overflow or respective owner