Submit Your Article Forum Rules

Results 1 to 6 of 6

Thread: CSS/HTML table question

  1. #1
    Senior Member
    Join Date
    Nov 2003
    Posts
    108

    CSS/HTML table question

    Ok, I have this site http://alligator-foot.tripod.com/

    And, on the side where it says 'links' I want a border around all the black, like the one around the whole page, How Can I go about doing this, but I only want a border around the black.

  2. #2
    Try changing this:

    <td width="100" valign="top" bgcolor="black">

    to this:

    <td width="100" valign="top" bgcolor="black" style="border:1 solid red">
    Geotrust SSL Certificates
    http://sslcheap.com

  3. #3
    Senior Member
    Join Date
    Nov 2003
    Posts
    108
    I tried that, didn't work...

  4. #4
    Senior Member paulhiles's Avatar
    Join Date
    Jul 2003
    Posts
    2,073
    Quote Originally Posted by labrynth_of_fire
    I tried that, didn't work...
    Are you sure? I tried it out on a copy of your page locally and it seemed to work perfectly well. Try increasing the border size.. maybe the one pixel is too small for you to notice it's there?
    So the line sslcheap gave you would read something like this.

    <td width="100" valign="top" bgcolor="black" style="border:4 solid red">

  5. #5
    Senior Member paulhiles's Avatar
    Join Date
    Jul 2003
    Posts
    2,073
    Okay.. I see it fails in Firefox.. no probs!
    Try adding this to your CSS

    #navlinks {
    background-color: black;
    border: solid 4px red;
    color: white;
    font-weight: bold;
    }


    Then add the ID to the table cell as below:

    <td width="100" valign="top" id="navlinks">

  6. #6
    Senior Member
    Join Date
    Nov 2003
    Posts
    108
    Quote Originally Posted by paulhiles
    Okay.. I see it fails in Firefox.. no probs!
    Try adding this to your CSS

    #navlinks {
    background-color: black;
    border: solid 4px red;
    color: white;
    font-weight: bold;
    }


    Then add the ID to the table cell as below:

    <td width="100" valign="top" id="navlinks">
    Ah, thanks, it works :)

Similar Threads

  1. Strip old html table from csv file with wildcards?
    By 888Knivesrus in forum Database Discussion Forum
    Replies: 3
    Last Post: 10-20-2009, 07:37 PM
  2. HTML...what are the main purpose of DIV and TABLE?
    By dylanbutler in forum Graphics & Design Discussion Forum
    Replies: 7
    Last Post: 06-07-2008, 03:34 AM
  3. Convert HTML table layout to CSS/XHTML Project
    By mikmik in forum Web Programming Discussion Forum
    Replies: 25
    Last Post: 07-13-2006, 06:25 PM
  4. CSS Table Question?
    By ergobob in forum Graphics & Design Discussion Forum
    Replies: 4
    Last Post: 10-13-2004, 12:01 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
  •