jimmyshoes
Programmer
Code:
<div style="border:#000000 1px solid;background-color:#00FF00;padding:20px;">Hello</div>
The above code creates a green box with a border and Hello is centered vertically.
My question is can I assume that text will always be centered vertically in a div. Also, If I want to position the text at the top of the div how do I do it.Adding vertical-align:top
to my style does not have any effect