Commenting CSS and Style Rules Order, 11/11/09
Check this out:
You will spend a good deal of time in this class making sure that your css rules are properly ordered. As the 370.css file continues to grow (we'll be adding a good number of rules in the next few weeks), you will want to be able to traverse the rules easily. Thus, in addition to good structure, you will want to add some descriptive sign posts along the way.In setting up your signposts, you will need to comment your CSS style rules in the hierarchical chunks I keep alluding to in class. This css commenting model (pdf) will give you an idea of the way I have commented my 370.css thus far. Feel free to use this document as a reference point in your own commenting of 370.css for Assignment One. I will address any concerns you may have next class.
If you are interested in some further commenting ideas, check out "Brownspank, a standards-conscious Web Designer for Brown Battery Studios," who has posted an interesting article on CSS comments: Maximize CSS Comment Usage. Take a look at this for some good commenting ideas.
The graphic below illustrates the order (hierarchy) of your CSS rules in 370.css (click image to enlarge):

Remember that your 370.css must not only be in the correct hierarchy but also thoroughly and intelligently commented.
If you have questions, just e-mail me at wbuchholz@bentley.edu. Feel free to comment on this announcement, or if you want to e-mail it, click on the little mail icon directly below. Note also that each announcement has a permanent link, available through the announcement title and posting date.
Labels: Assignment One, Assignment Two, Brown Battery Studios, Brownspank, commenting, CSS, w3c.org
posted by WJB at
Wednesday, November 11, 2009
|
1 Comments
| Links to this post
![]()




