SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot boballoo's Avatar
    Join Date
    Dec 2001
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    newbie asks: "What are the "#" and "."?

    Excuse my newbieness but what do the "#" and "." mean at the beginning of a line in an external css file? What does each of them do and how are they different? I have searched but cannot find the (simple) answer to this.
    EditFast
    Any Document --> Any Time!
    Web Site Copy Editing & Proofreading


  2. #2
    SitePoint Zealot Gar onn's Avatar
    Join Date
    Feb 2011
    Location
    Belgium
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the # is an ID selector: it selects elements with a certain ID like <DIV id="test"></DIV> will be found with the selector #test

    the . is a Class selector: it selects elements with a certain Class like <DIV class="test"></DIV> will be found with the selector .test

  3. #3
    SitePoint Zealot boballoo's Avatar
    Join Date
    Dec 2001
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's great Gar onn. That is clear and concise. Thank you for your help.
    EditFast
    Any Document --> Any Time!
    Web Site Copy Editing & Proofreading



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •