50 users online (1 members and 49 guests)  


  Results 1 to 2 of 2

Related

  1. Adjacent selectors in IE7    Forum: CSS Forum
    Replies: 0
  2. Child Selectors    Forum: CSS Forum
    Replies: 0
  1. #1
    danielb303's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2015
    Posts
    1

    CSS Selectors...

    What is the difference between class and ID selectors (# and .). I've seen them both used frequently but really don't understand when to use one over the other..

  2. #2
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: CSS Selectors...

    Hi there danielb303,

    and a warm welcome to these forums.

    The "id selector" is unique and may only be used once in the document, whereas
    the "class selector" may be used any number of times in the document.

    Further reading:-