* {
margin: 0;
padding: 0;
border: 0;
}
address {
font-style:normal;
}
th,th {
vertical-align: top;
}
option {
min-width: 1.5em;
}
p,dd,ol,ul {
margin-bottom: 1em;
}
table {
margin-top: 1em;
margin-bottom: 1em;
}
ol {
margin-left: 27px;
}
ul {
margin-left: 14px;
}
p,dd,ol,ul in my example, helps keep the formatting consistent and the style sheet easier to maintain.element#id {
attribute:value;
}
parentElement element#id {
attribute:value;
}
parentElement * element#id {
attribute:value;
}
parentElement>*element#id {
attribute:value;
}
etc.
#content p { ... }
#content h1 { ... }
#navigation ul { ... }
#navigation li { ... }
#navigation li.selected { ... }
By doing that I find I rarely need to add comments or worry about clashing rules.
posted by malevolent at 6:24 AM on July 17, 2005