CSS and '#'

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

CSS and '#'

Post by BDKR »

OK, I've been faking it and it's driving me up the wall! With CSS I can define classes, but what I need to know is what the difference is between a class that has a '#' in front of it and one that doesn't.

Cheers,
BDKR
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

# = id i.e. <sometag id="toy">blahblah</sometag>
. = class i.e. <sometag class="toy">blahblah</sometag>

anything without a symbol in front of it is supposed to be for a standard html tag.
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

Ahhhh.... That makes sense. Thanx a million.

Cheers,
BDKR
Post Reply