Page 1 of 1

CSS and '#'

Posted: Wed Jul 14, 2004 10:30 pm
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

Posted: Wed Jul 14, 2004 10:48 pm
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.

Posted: Wed Jul 14, 2004 11:08 pm
by BDKR
Ahhhh.... That makes sense. Thanx a million.

Cheers,
BDKR