SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru mdumka's Avatar
    Join Date
    Jul 2003
    Location
    True North
    Posts
    642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Looking for an CSS Explanation ..

    Hi Guys,

    I am trying to settle a development question ID vs Classes in CSS.

    Now my understanding is a developer you use and ID when the ID is only going to be used once ... so it is unique (thus ID).

    A developer would use a CLASS if they wanted to re-use the class sever times in a webpage (an example would be .nav for navigation links)

    Is this a correct statement?

    Thanks

  2. #2
    SitePoint Wizard bronze trophy Tailslide's Avatar
    Join Date
    Feb 2006
    Location
    Bedford, UK
    Posts
    1,687
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes
    Little Blue Plane Web Design
    Blood, Sweat & Rust - A Land Rover restoration project

  3. #3
    SitePoint Zealot
    Join Date
    Mar 2006
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    100% correct


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
  •