Jump to content

[SOLVED] Table height


IceDragon

Recommended Posts

I am trying to set up a table that would cover the whole website (for main page - in the middle of a page there would be a main image and at the bottom a copyright image.), but instead the table only covers a small portion at the top (width fits right but height doesn't)

 

<body>  
<table width="100%" height="100%" cellpadding="0" border="0" cellspacing="0">
       <tr height="95%">
         <td align="center"><img src="main_img.jpg" /></td> 
       </tr> 
       <tr height="5%">
         <td align="left"><img src="copyright.jpg" /></td> 
       </tr> 
</table>
</body>

 

anyone knows whats wrong with the code?

Link to comment
https://forums.phpfreaks.com/topic/116882-solved-table-height/
Share on other sites

never mind. I've managed to fix it  ;D

 

<style>
          #Header {height:180px; position:absolute; left:38%; top:15%;}
          #Footer {height:30px; position:absolute; bottom:0px;}
</style>

<div id="Header" align="center"><img src="main_img.jpg" /></div>


<div id="Footer" align="left"><img src="copyright.jpg" /></div>
</body>

Link to comment
https://forums.phpfreaks.com/topic/116882-solved-table-height/#findComment-601092
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.