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
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,
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)