torsdag den 23. oktober 2008

Everything You Know About CSS Is Wrong


CSS knock outer tabellerne ...
/Sik


CSS eliminates tables ...
/Sik


Quote

When released, Internet Explorer 8 will support many new values for the CSS display property, including the table-related values: tabletable-row, and table-cell—and it’s the last major browser to come on board with this support. This event will mark the end of complex CSS layout techniques, and will be the final nail in the coffin of using HTML tables for layout. Finally, producing table-like grid layouts using CSS will be quick and easy.

Perhaps you’re feeling slightly uncomfortable about the example we’ve just seen—after all, haven’t web standards advocates like myself been insisting for years that you shouldn’t be using tables for layout?

Applying table-related display property values to web page elements causes the elements to mimic the display characteristics of their HTML table equivalents. In this article, I’ll demonstrate how this will have a huge impact on the way we use CSS for web page layouts.

Using CSS Tables

CSS tables solve all the problems encountered when using absolute positioning or floats to create multi-column layouts in modern browsers. Specifying the value table for thedisplay property of an element allows you to display the element and its descendants as though they’re table elements. The main benefit of CSS table-based layouts is the ability to easily define the boundaries of a cell so that we can add backgrounds and so on to it—without the semantic problems of marking up non-tabular content as a HTML table in the document.

[...]



Read more: http://www.digital-web.com/articles/everything_you_know_about_CSS_Is_wrong/

Ingen kommentarer:

Send en kommentar