This is a discussion on "Vertically aligning text at the bottom" within the Web Page Design section. This forum, and the thread "Vertically aligning text at the bottom are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Vertically aligning text at the bottom
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Vertically aligning text at the bottom
Why are the simple things always the hardest?
:throw: I have two divs inside a container div. DivOne may be a single line of text... or it may wrap to 2 lines. DivTwo will always be a single line. I want both of them to align at the bottom of the container div (regardless of whether DivOne is one line or two.) This doesn't work:
Surely there's an easy way to do this? |
|
|
|
#2
|
|||
|
|||
|
Re: Vertically aligning text at the bottom
See if this link helps you...http://phrogz.net/CSS/vertical-align/index.htmlhttp://phrogz.net/CSS/vertical-align/index.html
|
|
#3
|
|||
|
|||
|
Re: Vertically aligning text at the bottom
It supports the conclusion I came to within minutes of that post last night - "Screw it. I'm going back to tables." (Not for everything. Just for that particular page.) Thanks for the help, though, Linda!
|
|
#4
|
||||
|
||||
|
Re: Vertically aligning text at the bottom
What about positioning? That would do it easily.
|
|
#5
|
|||
|
|||
|
Re: Vertically aligning text at the bottom
How? I've been trying that and failing miserably!
|
|
#6
|
||||
|
||||
|
Re: Vertically aligning text at the bottom
I don't really understand exactly what you're looking for, but try playing with this:
|
|
#7
|
|||
|
|||
|
Re: Vertically aligning text at the bottom
I've already reverted back to a table, but I still want to learn...
So, as long as I don't specify a value for left or right, I can still have 2 divs/elements sitting side-by-side? (But they'll be bottom-aligned within the container so it won't matter whether the height of the one on the left expands or not?) |
![]() |
| Tags |
| alignment, vertical, vertical align |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Newbie :-Trouble aligning text within div tag | Deepa7476 | Web Page Design | 8 | Nov 29th, 2007 08:59 |
| vertically center text | alexgeek | Web Page Design | 2 | Aug 14th, 2007 12:47 |
| Align text vertically in a box | josoap | Web Page Design | 3 | Jul 12th, 2007 17:29 |
| Text running from top to bottom - How? | rubyfruit | Web Page Design | 12 | Oct 2nd, 2006 11:21 |
| Aligning blocks at the bottom of a containing block | nomis80 | Web Page Design | 2 | Jul 25th, 2005 22:05 |