It could be far more clear, and follow best practices. Making it valid, too, would be nice.
To communicate the idea, one only needs to present something like:
Code:
.skip-to {
pause: 100%;
position: absolute;
left: -100em;
}
.left {
float: left;
width: 10em;
}
.right {
float: right;
width: 10em;
}
.centre {
/* Make left and right margins slightly wider than their respective columns. */
margin: 0 11em;
}
.footer {
clear: both;
}
HTML Code:
<body>
<div class="header">
Header
<a class="skip-to" href="#content">Skip navigation to content</a>
</div>
<div class="left">
Left-most column
</div>
<div class="right">
Right-most column
</div>
<div id="content" class="centre">
Central column
</div>
<div class="footer">
Footer
</div>
</body>
with a note that the class names are for expository purposes only, and better, presentation-neutral replacements should be used instead. Everything else is superfluous and distracts the reader from the significant parts.
If the content in either flanking column is significant, links to those containing elements should be included, such as the one already present above. The idea is to skip navigation and other distracting content for the benefit of assistive technologies. With more than one link, a list should be used and that should be assigned the "skip-to" class name.
If a footer isn't required, absolute positioning can be a better implementation technique as it places the important content nearer to the start of the document. For that reason, if this is added to the CSS Library, the title should advertise the footer as a distinguishing characteristic.
Mike
Bookmarks