Table Cellpadding Problem

WhiteOut

New Member
Messages
111
Reaction score
0
Points
0
Can anyone tell me if Im using cell padding correctly? It doesn't seem to be working. You can look at my table at http://techgeekmag.com/links/

Heres the code:
Code:
<table border="1" bordercolor="red" cellpadding="10">
<tr>
<td><b><center>Website</center></b></td>
<td><b><center>Description</center></b></td>
<tr>
<td>
<a href="http://prime-media.me.uk/">Prime Media</a>
</td>
<td>
Professional Web Design/Development at an affordable price!
</td>
</tr>
<tr>
<td>
<A HREF="http://www.linkhelpers.net">Targeted Website Traffic</A>
</td>
<td>Webmasters helping webmasters develop high value relevant links. Promoting ethical web-marketing using the time trusted pillars of relevance and popularity.
</td>
</tr>
    <tr>
        <td><a href="http://tmondo.com/">tmondo</a></td>
                <td>Tmondo.com is your number one source for free Online Games. We have a huge selection of games available for you to play.With hundreds of games, you will have hours of fun in the arcade. With our very easy to use casino suitable for all ages you can bet and gamble as much you like...</td>

    </tr>
</table>
 

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
Perfectly, be sure you know the difference between cellpadding and cellspacing.

I found that you have this in your CSS that overrides the cellspacing declaration you made in the HTML:
HTML:
* {
    margin:0;
    padding:0;
}
I hope this helps you =)
 
Last edited:

WhiteOut

New Member
Messages
111
Reaction score
0
Points
0
Thanks, but I'm still having some issues. If I remove that from the CSS, the navigation images don't line up correctly. I tried making a div for the nav with margin:0; and padding:0; in it, but it didn't fix it. Do you know of any solutions?
 

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
Well, you could take the easy way out and make an inline style declaration inside the head tag and leave the wild card or you can isolate the problem and make classes for the menu that needs spacing. By having that wild card, you place yourself in a difficult position to edit the page.
HTML:
table.classname td{
	padding: 50px;
}

* {
	padding: 0px;
	margin: 0px;
}
This should override the wild card, and set the table padding. Make sure you use the class="classname" inside your table, rename the class if you want.
 
Last edited:
Top