Page 1 of 1

html <div> set

Posted: Wed Sep 05, 2007 2:21 am
by handras
I have an easy html structure.

Code: Select all

.....
<td>
        <div id="top">
                      text content 
        </div>

        <div id="bottom">
                      fix size menu
        <div>
</td>
......
The td elements size is variable, and the "top" <div> size too.
I would like set the "bottom" <div> on the <td> bottom ( that should be always there),
but if I set the vertical-align for bottom, the "top" <div> come bottom too.
I was tried the other expedient (position:absolute) but that was far from solution.

Can Somebody help me ?

Posted: Wed Sep 05, 2007 7:58 am
by superdezign
I don't think using divs in a td is what we would consider an "easy HTML structure." You should never need to put block elements into a table (unless you want images to have a display: block attribute) since tables are built for holding tabular data. Maybe you need to rethink what it is that you are doing.

Posted: Wed Sep 05, 2007 8:46 am
by handras
I take your advice. Thank you!

Posted: Thu Sep 06, 2007 5:17 am
by vinoth
Better use span instead of Div