Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   CSS (https://www.askmehelpdesk.com/forumdisplay.php?f=445)
-   -   CSS borders show up for th but not td (https://www.askmehelpdesk.com/showthread.php?t=95802)

  • May 25, 2007, 12:26 PM
    javawebgrrl
    CSS borders show up for th but not td
    Hi All,
    I have the following in my css file, and then have a table defined with <table class="whiteBoard">.

    For some reason, my th cells show the black borders around the cells as I would expect, but the td cells do not. I can't figure out why the td cells have no borders. Anyone see something I am not seeing ? Thanks!

    .whiteBoard {
    border-width: 1px;
    border-color: gray;
    background-color: white;
    }
    .whiteBoard th {
    border-width: 2px;
    padding: 2px;
    border-style: solid;
    border-color: black;
    background-color: white;
    }
    .whiteBoard td {
    border-width: 2px;
    padding: 2px;
    border-style: solid;
    border-color: black;
    background-color: white;
    }
  • May 25, 2007, 02:24 PM
    robertva
    Have you tried eliminating the spaces in the style names?

    WhiteBoardtd instead of whiteBoard td

  • All times are GMT -7. The time now is 07:24 PM.