Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.