View Single Post
11-23-2007, 03:57 PM
#3
<!--Ryan--> is offline <!--Ryan-->
<!--Ryan-->'s Avatar
Status: Member
Join date: Nov 2007
Location: LakeDistrict, England
Expertise:
Software:
 
Posts: 279
iTrader: 3 / 100%
 

<!--Ryan--> is on a distinguished road

  Old

Originally Posted by Kyrislian View Post
I've been playing around with CSS for quite a long time now, but that was just a lot of messing around. Now, I gotta face the light *shame-faced*

How, exactly, do you determine when to use .class or #id?

And on a lesser note, <div> and <span>?

This newb will really appreciate the explainations
Ok first off <div> is a division and is mainly used to dived areas of a page in to sections. Most people use this to group elements together.
span is used for another style handle when there is nothing left to use. You can add spans on most elements but not all.

Ok the diffrence between .class and #id is that #id's can only be used once on a page so they are unique. Classes can be used over and over again.

I hope this helps you.