![]() |
TD - vertical alignment top AND bottom?
I got the following problem and haven't found a (good working) solution:
Let's say there is a table cell (td). Within this cell, I have two div elements. The first one should be aligned ad the top of the cell, the second one at the bottom. Any idea how this could be done? |
Vertical alignment is not easy to do in CSS - easier in Table layouts (bad Natch, bad Natch!) ...
Try Code:
<td> |
Doesn't work at alll.
- DIV tags don't have a valign-attribute. - the style definition is invalid So I modified the code: Code:
|
'scuse me for being tired :p
|
1 Attachment(s)
*bump*
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> How could I get it working? |
*bump*
I'd really need a solution for this ... Anyone? |
Why not use CSS Positioning to work out your problem. Check this link -> http://www.w3.org/TR/REC-CSS2/visure...ed-positioning
|
Hmm ... can you give an example on how to use this?
I can't seem to get it working :( If I create two divs with
Same for position: absolute |
Hmmm...let me play with this a bit & get back to you.
|
Thanks a lot :)
|
Quote:
|
*bump*
Still need a solution :( Did you have success? |
Turn on quirks mode in IE by sticking this at the top of your HTML documents:
Code:
<?xml version="1.0" encoding="iso-8859-1"?> e.g. Code:
<table cellpadding="0" cellspacing="0" border="0" style="height: 100%;"> |
Doesn't work at all :(
If I use HTML Code:
<table cellpadding="0" cellspacing="0" border="0" style="height: 100%;"> |
Hmm have you outlined the cell that this table is within with a border and checked it is 100% height of the container cell? (in both firefox and IE)
|
iirc you have to use the height attribute in the body tag as well.
|
*bump*
Still doesn't work :( |
All times are GMT. The time now is 02:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|