Log in

View Full Version : Table Cell Spacing



onestopplay
03-12-2011, 09:46 PM
Hi,

Please check this website I'm currently working on:
http://www.patrixgourmet.com/patrix/

Do you see the space between the header and the body sections? How do I get rid of that? I've had this problem in the past and can never get rid of it? Why is the cell spacing so weird? I have it set a 0.

Thanks for your help!

mlegg
03-13-2011, 02:26 AM
Do you mean between Welcome, you're gonna love how we do it! and Thank you for visiting our site today.?

right before H3 you have this:

<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td height="122" valign="top" width="386">
<div style="padding-left: 0px; padding-top: 13px;"><img src="images/1_hl2.jpg"></div>
<div style="padding: 10px 10px 5px 3px; line-height: 20px;" class="main"><h3>Welcome, you're gonna love how we do it!</h3>

change the padding to 0


<div style="padding: 0;" class="main">

If you mean above the Welcome line than change the code line above

<div style="padding-left: 0px; padding-top: 0;">

onestopplay
03-14-2011, 12:35 PM
Thanks, I was trying to figure that out too. But what I meant was the space under the menu and above the picture. The background is showing?
Thanks again for your help.

davelf
03-15-2011, 03:26 AM
background-position:bottom
for the upper table

and

background-position:top
for the bottom table

onestopplay
03-19-2011, 02:20 AM
Thank you for giving me an actually answer that fixed the problem! I posted this question on another forum on a different website, and they kept giving me crap about how the template was bad; ya I know its bad, but I have to deal with it for now. THANK YOU FOR GIVING ME AN ACTUAL ANSWER TO REALLY SOLVE MY PROBLEM!
Dynamic Drive Forums are the best.