...

View Full Version : Placing objects in table cell



Afrow UK
01-26-2004, 10:38 PM
Hello, how would I do the following:

table top ---------
:text here:



:another image here:
table bottom ---------

The text should be aligned to the top, and the image aligned to the bottom, allowing for 100% table height to 30%, without effecting the positions.
No doubt I can do this with CSS, but I haven't had to do this before.

Cheers

-Stu

Antoniohawk
01-26-2004, 10:46 PM
How about just using 2 cells without a border, it will look like 1 cell but no one will know or probably even care.

Afrow UK
01-26-2004, 10:53 PM
Originally posted by Antoniohawk
How about just using 2 cells without a border, it will look like 1 cell but no one will know or probably even care.

That may be the only solution, the only one I could find, but I am trying to get the same result without having to implement 2 cells.

-Stu

glenngv
01-27-2004, 09:16 AM
like this?

<table border="1" height="100%" width="100%">
<tr><td>
<div style="height:70%">
blah blah blah<br />
blah<br />
blah<br />
</div>
<div style="height:30%">
<img src="image.gif" />
</div>
</td></tr>
</table>

Afrow UK
01-27-2004, 12:58 PM
Originally posted by glenngv
like this?

<table border="1" height="100%" width="100%">
<tr><td>
<div style="height:70%">
blah blah blah<br />
blah<br />
blah<br />
</div>
<div style="height:30%">
<img src="image.gif" />
</div>
</td></tr>
</table>

Ah cheers!
Thanks very much!

-Stu :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum