Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Markup Languages > CSS   »   CSS borders show up for th but not td

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old May 25, 2007, 11:26 AM
javawebgrrl
New Member
javawebgrrl is offline
 
Join Date: May 2007
Posts: 1
javawebgrrl See this member's comment history on his/her Profile page.
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;
}

Reply With Quote
 
     

Answers
 
 
Old May 25, 2007, 01:24 PM   #2  
robertva
Junior Member
robertva is offline
 
Join Date: May 2007
Posts: 86
robertva See this member's comment history on his/her Profile page.
Have you tried eliminating the spaces in the style names?

whiteBoardtd instead of whiteBoard td
  Reply With Quote
 
     


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
Do we have borders or not! CaptainRich Immigration Law 14 Jul 13, 2007 09:47 AM
paint over borders? ej19403 Interior Home Improvement 3 May 20, 2007 12:06 AM
CSS vs. HTML jduke44 HTML 9 May 25, 2006 12:15 AM
Cell/Table Borders dragonfly11 Internet & the Web 4 May 24, 2006 12:14 AM
need help with css thetachi464 Internet & the Web 2 Mar 21, 2005 08:23 PM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 01:49 AM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.