This link has been bookmarked by 8 people . It was first bookmarked on 29 Sep 2009, by Nicola Oli.
-
-
Separating the container from the content means that any object (the container) should be able to adapt itself to accept any content; for example, it shouldn't need to have an h3 at the top, followed by an unordered list for it to look right. This allows flexibility and reusability, which is paramount.
-
Notice the selector: we are targeting every element directly inside the body of our object; when styling an object, you always apply the class to the object itself.
- 1 more annotations...
-
-
Daniel G"we have not limited the class to a specific element; we could add it to anything. This gives us the most flexibility possible."
-
Rae Anikcss object oriented script
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.