html <div> set

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
handras
Forum Newbie
Posts: 6
Joined: Wed Aug 15, 2007 4:43 am

html <div> set

Post 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 ?
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post 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.
handras
Forum Newbie
Posts: 6
Joined: Wed Aug 15, 2007 4:43 am

Post by handras »

I take your advice. Thank you!
vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

Post by vinoth »

Better use span instead of Div
Post Reply