troubleshooting Question

Targeting CSS for certain Table, newbie help

Avatar of edvinson
edvinsonFlag for United States of America asked on
CSS
4 Comments1 Solution588 ViewsLast Modified:
How can I make this CSS apply to only a table with the ID of "MYTABLE" ?

Thanks!

table,td
{
      border               : 1px solid #CCC;
      border-collapse      : collapse;
  font                 : small/1.5 "Tahoma", "Bitstream Vera Sans", Verdana, Helvetica, sans-serif;
}
table
{
      border                :none;
      border                :1px solid #CCC;
}
thead th,
tbody th
{
      background            : #FFF url(th_bck.gif) repeat-x;
  color                 : #666;  
      padding               : 5px 10px;
  border-left           : 1px solid #CCC;
}
tbody th
{
  background            : #fafafb;
  border-top            : 1px solid #CCC;
  text-align            : left;
  font-weight           : normal;
}
tbody tr td
{
      padding               : 5px 10px;
  color                 : #666;
}
tbody tr:hover
{
  background            : #FFF url(tr_bck.gif) repeat;
}

tbody tr:hover td
{
  color                 : #454545;
}
tfoot td,
tfoot th
{
  border-left           : none;
  border-top            : 1px solid #CCC;
      padding               : 4px;
  background            : #FFF url(foot_bck.gif) repeat;
  color                 : #666;
}
caption
{
      text-align            : left;
      font-size             : 120%;
      padding               : 10px 0;
      color                 : #666;
}
table a:link
{
      color                 : #666;
}
table a:visited
{
      color                 : #666;
}
table a:hover
{
      color                 : #003366;
      text-decoration       : none;
}
table a:active
{
      color                 : #003366;
}
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros