Why # in CSS?
- Started
- Last post
- 33 Responses
- Blofeldt0
Thanks MX_OND
- ********0
I get it.
But ;
#leftbit
#middlebit
#rightbit... these could be .class and you'd get the same result?!
- ********0
you're most welcome.
can't remember the last time I used a table.
!!!don't scroll down!!!
much to the disgust of m'lady
*told you not to scroll down ;)
- ********0
theoretically yes moth.
(although in theory you could also do every p tag with an ID....)
but consider you may want these to differ in whatever way on different pages, already you're fecked with classes....
classes are generally better for defining the content of elements and IDs are better for defining the actual elements...
more flexibility.
- ********0
So they differ in the values you can apply to them?
The only difference I'm seeing is typographic...! . or #
?!?!
- ********0
nope same values can go in either.
socks can be worn by themselves as can shoes independantly of each other.
socks worn inside shoes give you the optimum performance
socks can be worn outside shoes but it doesn't really make sense.
- ********0
LOL
Man I need a beer....
Thanks.
- ********0
shit, I didn't want that to sound condescending or patronising!!
just trying to find an anology... it's not an easy one to get your head around - I know it took me ages!!
just think of it as containers and content....
- ********0
No i get it... but... I dunno. It's an odd one.
- Blofeldt0
My socks are conflicting! One's tiny and hurting my foot. The other's the right size but the wrong colour!
- DutchBoy0
look you have classes..
you know like clothes.. consider this a class
your socks need to go in the second drawer, so you give them id #seconddrawer but still you want to let everyone know that you do wear your socks hence they are clothes and belong to class .clothes
then you have your tigerthongs, these need to go in the topdrawer, still the thongs are clothes as well so they get class .clothes, but contrary to the socks (which are also clothes) they need to go in the topdrawer, so they get id #topdrawer
so basically they're stored in the same cabinet (.clothes) only different drawers ( #topdrawer, #seconddrawer etc. )
GET IT NOW??
:P
- aliendn0
I get it, dutchboy wears tiger thongs and there's nothing wrong with that, he's still in the class of NTers.
- DutchBoy0
yes, and it has your name on it!
;P