I need to create a <div> of height 200px that has some text at the very top and the very bottom. This needs to work in all major browsers. I’ve tried various combinations of alignment/vertical-alignment with no luck.
I need to create a <div> of height 200px that has some text at
Share
Use two spans (or whatever) inside the div:
Then give the
divposition: relative;and position the spans absolutely:Live example: