Jump to content

Putting the text at the bottom of the div


play_

Recommended Posts

How do i do that?

 

i have a div, say 500 x 500, and if i write something, it floats on top left.

but how do i put it on the bottom of the div? do i have to wrap the text in yet another div, and absolute position it?

Link to comment
Share on other sites

That is because vertical-align is meant to align or justify elements vertically.... you must have encountered some text in some program where you couldn't get lines to be on the "same level", like one was always higher or lower than the other:

 

Something like this which is damn irritating

 

vertical-align is meant to align that kind of stuff...

 

 

I think relative positioning might work for you:

 

position: relative;

bottom: 0;

left: 0;

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.