Results 1 to 2 of 2
Thread: positioning- best practices
Jan 16, 2007, 11:14 #1
positioning- best practices
This may seem a very simple question, but coming from from an absolute beginner i'm just looking for a definitive answer....or opinions.
I want to know which of Class and Id selectors is the best for positioning
elements on a page?
Id, generally in my limited scope means Div's. Class, means something you create. But that Id selectors can only refer to one element, whereas class selectors can refer to as many as you desire? Have I got this right?
What I'm looking to do, is to play around with the CSS i've learned so far and
get a feel for the various bits that make up positioning part of CSS. I've been playing with Div's so far, looking to place them in counterpart and offseting them, just really looking to make a well sectioned page. I've used borders around elements to see how it fits on the page but cannot really get at what i'm aiming for.
Sorry for the garbled rant in the last paragraph, but I think I'm a bit stuck and would apreciate any thoughts.
Jan 16, 2007, 12:04 #2
You're almost right, except that the id and class attributes can be used on any element, not just div.Saul