|
Posted by kchayka on 04/06/06 23:25
JDS wrote:
>
> 1) Start with a plain vanilla HTML 4.01 strict page which has absolutely
> zero author-imposed layou or design characteristics. USE SEMANTICALLY
> CORRECT HTML!!
Good advice there.
> 2) Give classes and/or Id's to every element.
Not so good advice there. Why bloat the markup with stuff you don't
really need?
> Also, you can start to add a smattering of <DIV>s here and there to force
> the layout how you want it.
Excusing the word "force", this is where well-placed divs can eliminate
or reduce the need for the excessive class assignments in your #2.
Grouping elements in a div wrapper can make styling those elements a
breeze, using primarily descendant selectors.
div.content h2 {rules for h2 in the content area}
div.navbar h2 {different rules for h2 in the navigation area}
2 different parts of the page, different styling, no class selector
require on the individual h2 elements. It won't eliminate the need for
special class selectors, but should get rid of most.
Piece of cake.
--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Navigation:
[Reply to this message]
|