html div with text on top and bottom -
i need create <div>
of height 200px has text @ top , bottom. needs work in major browsers. i've tried various combinations of alignment/vertical-alignment no luck.
use 2 spans (or whatever) inside div:
<div> <span id="top">text @ top</span> <span id="bottom">text @ bottom</span> </div>
then give div
position: relative;
, position spans absolutely:
div { position: relative; height: 200px; } span { position: absolute; } span#top { top: 0; } span#bottom { bottom: 0; }
live example:
Comments
Post a Comment