-
-
Save jlong/1045839 to your computer and use it in GitHub Desktop.
section.three-column-grid { | |
clear: both; | |
width: 960px; | |
@include clearfix; | |
> section { | |
float: left; | |
padding: 0 10px; | |
width: 300px; | |
} | |
// Must have at least IE 9 | |
> section:nth-child(3n+4) { | |
clear: both; | |
} | |
} |
Can you send me a URL for point number 1?
From A Book Apart's "HTML 5 for Web Designers", Jeremy Keith writes:
"The section element is used for grouping together thematically-related content. That sounds a lot like the div element which is often used as a generic container. The difference is that div has no semantic meaning; it doesn't tell you anything about the content within. The section element on the other hand, is used explicitly for grouping related content."
So it has nothing to do with whether there is a heading inside or not. Headings help create outlines if you have the right tool (I know of none, but that's the idea).
On 2, I can see the advantage, but prefer the more obvious presentational class name.
- http://html5doctor.com/the-section-element/ Look under "rule of thumb"
Sigh... it is a "rule of thumb"...
But thanks for the criticism. Definitely helps me think better about my HTML.
Nice and easy, though a couple of notes.
<section>
is not the new<div>
. The root<section>
should be a<div>
while the inner sections (if they have headings) are okay.