www.webdeveloper.com
Results 1 to 3 of 3

Thread: Classes Versus ID's? ...for footer div

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Posts
    281

    Classes Versus ID's? ...for footer div

    when creating a footer div that appears on every page, what is the best practice, ot make it a class or give it an ID?,

    or does it matter?

    it seems i've read that it is more taxing on the browser to make as an ID


    i could just go look on a big pro site, ;-) i'll do that now

  2. #2
    Join Date
    Dec 2007
    Location
    Kelowna, BC
    Posts
    100
    Hi toptomato,

    I have switched over to full CSS in the last six months, so still have a lot of learning ahead of me. From my understanding to date, you use a Class tag for a repeated Div assignment and an ID for a unique assignment. So in other words, if you have a font style, or div container style, which appears numerous times on a single page, use "< div class="example" > ... and if it's a unique container, with a single use per page, use "< div id="example" >

    Hope this helps?

    All the best,
    Cal
    Visiting or Relocating to the Okanagan Valley...
    http://www.okanaganforum.com

  3. #3
    Join Date
    Mar 2010
    Posts
    281
    okay, thanks Calman

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles