Member Sign In
Not a member?

A Wired.com user account lets you create, edit and comment on Webmonkey articles. You will also be able to contribute to the Wired How-To Wiki and comment on news stories at Wired.com.


It's fast and free.

Sign in with OpenID
Sign In
Webmonkey is a property of Wired Digital.
processing...
Join Webmonkey

Please send me occasional e-mail updates about new features and special offers from Wired/Webmonkey.
Yes No

Please send occasional e-mail offers from Wired/Webmonkey affiliated web sites and publications, and carefully selected companies.
Yes No

I understand and agree that registration on or use of this site constitutes agreement to Webmonkey's User Agreement and Privacy Policy.
Webmonkey is a property of Wired Digital.
processing...

Retrieve Sign In

Please enter your e-mail address or username below. Your username and password will be sent to the e-mail address you provided us.

or
Webmonkey is a property of Wired Digital.
processing...

Welcome to Webmonkey

A private profile page has been created for you.
As a member of Webmonkey, you can now:
  • edit articles
  • add to the code library
  • design and write a tutorial
  • comment on any Webmonkey article
Close
Webmonkey is a property of Wired Digital.

Sign In Information Sent

An e-mail has been sent to the e-mail address registered in this account.
If you cannot find it in your in-box, please check your bulk or junk folders.
Sign In
Webmonkey is a property of Wired Digital.

Someday You Will Not Hate the CSS3 Advanced Layout

At first glance you’re going to hate the “advanced layout” that is currently a W3C working draft. Maybe it’s the similarity to table-based layouts, of which we all still have nightmares. Mainly, you’ll likely cringe just because it’s such a foreign way to write CSS. I think you’ll eventually come around.

Example of advanced layout CSSConsider this common layout: a header covers the top of the page, followed by a left sidebar, content area, and a right sidebar. The proposed CSS declaration for this example is display: “aaaaaa” “bccccdd”. Note that this has not been declared a standard, nor is it supported by any browser yet. It’s just a proposal.

Creator of jQuery John Resig likes it, and he’s always one to jump at simplified syntax. The funny thing about this advanced layout, which you probably still hate, is that it’s actually simpler than the floats and clears that have to happen to create similar layouts with CSS today.

Newspaper front page with advanced layout CSS

As much help as CSS frameworks have become, they can add extra weight, with markup that provides CSS hooks, but does not make sense semantically. In the case of the so-called advanced layout, once you have described the grid with the sequence of letters, you can simply refer to the positions in CSS:

#header {
position: a;
}
#sidebar {
position: b;
}

...

The outcome is HTML that doesn’t need to be unneccessarily nested. CSS without confusing calls to grid-based rules.

What do you say? Do you like it yet?

See also:

Post Comment Comments Permalink Print
Reddit Digg

 
Subscribe now

Special Offer For Webmonkey Users

WIRED magazine:
The first word on how technology is changing our world.

Subscribe for just $10 a year