HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Problem with length and image use
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
koko55



Joined: 25 Apr 2005
Posts: 1

PostPosted: Mon Apr 25, 2005 5:30 am     Problem with length and image use Reply with quote

Hey,

I have a nested table which sets out the header images of the page.
However, after each image (when I view the page in the browser) about 5 pixels of extra space are added after the images even through I have made sure that the TD's where the pictures go are equal in length to the images???

The image used for the 2nd TD's background is also the same length as the others so that it only appears once in length but repeats horizontally.

I really don't know what to do anymore, I think that I have tried everything????? Does anyone know how to fix this????

(PS. I also have this problem for each TD which contains an image and I have made sure that none of the other images in any of the other TD's in the Row are longer in length to cause this)

Thanks in advance for any help,

Code:

<!-- This is the main table which includes all the elements of the website -->
   <table width="800" border="0" align="center" cellpadding="0" cellspacing="0">

      <tr>
         <td>
            <!-- This table is used to set out the header and logo -->
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
               <tr>
                  <td width="215" align="left">
                     <img src="Images/Logo.gif" width=215 height=97>
                  <td align="right" background="Images/Border_Outside_Top.gif">
                     &nbsp;
                  <td width="45" align="right">
                     <img src="Images/Border_Outside_RTopCorner.gif" width=45 height=97>
            </table>

nagasree



Joined: 21 Sep 2004
Posts: 81
Location: Hyderabad, India

PostPosted: Wed Apr 27, 2005 10:50 pm     Reply with quote

Can you provide the link of your site so that it can be easy to check the source and respond.
nagasree



Joined: 21 Sep 2004
Posts: 81
Location: Hyderabad, India

PostPosted: Wed Apr 27, 2005 10:53 pm     Reply with quote

One more quick observation is the td tags containing the images are closed and also there is no closing tr tag

Try this and see
Code:

<!-- This table is used to set out the header and logo -->
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
               <tr>
                  <td width="215" align="left"><img src="Images/Logo.gif" width=215 height=97></td>
                  <td align="right" background="Images/Border_Outside_Top.gif">&nbsp;</td>
                  <td width="45" align="right"><img src="Images/Border_Outside_RTopCorner.gif" width=45 height=97></td>
            </tr>
            </table>


-Nagasree
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial