Web Development and Design Foundations with XHTML, 5th Edition

(Steven Felgate) #1

(^338) Chapter 8 Tables
FAQ
Is there a way to create a “table-like” page layout with CSS?
Yes; if you’d like to explore using CSS to style table-like layouts on Web pages, check out
the CSS displayproperty. As you may recall from Chapter 6, the CSS displaypropertyconfig-
ures if and how an element is displayed. You’ve already worked with display:none,
display:block, and display:inline. Internet Explorer 8 was the last major browser to
add support for the display:tableproperty values. Rachel Andrew’s article, Everything
You Know About CSS Is Wrong, at http://www.digital-web.com/articles/everything_youknow
about_CSS_Is_wrong, encourages developers to embrace the display:tablecoding
methods. Be aware that this technique is still quite limited. For example, there is no built-in
mechanism to emulate the rowspanor colspanattribute in XHTML tables. However, this is
in the works with the CSS3 draft recommendation at http://www.w3.org/Style/CSS/
current-work, which includes new CSS specifications for working with multicolumn layouts
and grid positioning.

Free download pdf