Log in

View Full Version : CSS borders show up for th but not td


javawebgrrl
May 25, 2007, 12:26 PM
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;
}

robertva
May 25, 2007, 02:24 PM
Have you tried eliminating the spaces in the style names?

WhiteBoardtd instead of whiteBoard td