+ Reply to Thread
Results 1 to 5 of 5

Thread: Table Cellpadding Problem

  1. #1
    WhiteOut is offline x10 Sophmore WhiteOut is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    111

    Table Cellpadding Problem

    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>

  2. #2
    Twinkie is offline Banned Twinkie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ft. Lauderdale, Florida
    Posts
    1,389

    Re: Table Cellpadding Problem

    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 Code:
    * {
        margin:0;
        padding:0;
    }
    I hope this helps you =)
    Last edited by Twinkie; 11-18-2008 at 07:35 PM.

  3. #3
    WhiteOut is offline x10 Sophmore WhiteOut is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    111

    Re: Table Cellpadding Problem

    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?

  4. #4
    Twinkie is offline Banned Twinkie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ft. Lauderdale, Florida
    Posts
    1,389

    Re: Table Cellpadding Problem

    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 Code:
    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 by Twinkie; 11-19-2008 at 05:00 PM.

  5. #5
    WhiteOut is offline x10 Sophmore WhiteOut is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    111

    Re: Table Cellpadding Problem

    Thanks that works perfectly. =]

+ Reply to Thread

Similar Threads

  1. Problem with two column CSS layout and tables
    By gottaloveit in forum Graphics & Webdesign
    Replies: 1
    Last Post: 04-24-2008, 04:19 PM
  2. DB number problem
    By lionheart8 in forum Free Hosting
    Replies: 5
    Last Post: 04-08-2008, 08:26 AM
  3. Site Problem
    By himgar in forum Free Hosting
    Replies: 3
    Last Post: 03-10-2008, 03:36 PM
  4. Ad code problem!
    By Akkarin in forum Free Hosting
    Replies: 8
    Last Post: 08-29-2005, 10:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers