Thread: Dumb Question
View Single Post
 
Old April 7th, 2005, 04:29 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Although you can override the appearance of tags, you can't actually define new tags. Although CSS might now how to handle tr2, the browser doesn't and doesn't know it's supposed to render it as a tr.

Try to set an id or class, like this:

Class
<tr class="SomeClass">

CSS:
.SomeClass
{
  color: blue;
}


ID:
<tr id="SomeID">

CSS:
#ID
{
  color: blue;
}

IDs must be unique within a page, while classes can be used multiple times.

Check out Richard York's excellent Beginning CSS if you want to know all about CSS.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.