Tech Note: Tabular Exorcism

Charles Johnsonfollow me on twitter
Science • Sun Oct 5, 2008 at 2:30 pm PDT • Views: 211

The latest change behind the scenes is huge, but hopefully you won’t even notice.

Ever since LGF began, back in the Paleostinky Era, our main template has been based around a simple HTML table with three columns. No nested tables (gasp!) or anything like that, but in the world of web wonks, this kind of table-based design is akin to walking around with a piece of spinach stuck between your front teeth.

So at long last we’ve ditched the tables, flossed our web choppers, and deployed a modified version of the three column floated layout described in this excellent book: CSS Mastery: Advanced Web Standards Solutions: Andy Budd, Simon Collison, Cameron Moll.

There may still be some bugs to work out, but the worst of them have been crushed. The layout looks the same in Internet Explorer 6 and 7, Safari 3, and Firefox 3.

One big advantage is the increased accessibility. Using this sort of floated layout allows us to have the main content column actually appear first in the source listing, before the left and right sidebars; this means that visitors with impaired vision who use screen readers no longer have to wade through the whole left sidebar just to get to the real stuff.

There’s one area left in the template that still uses a table: the navigation panels that appear at the top and bottom of the middle column. But that’s due for an exorcism too.

UPDATE at 10/5/08 6:24:16 pm:

Main template exorcism completed, and I didn’t even need to call in Bobby Jindal (sorry, couldn’t resist). The navigation panels now use an unordered list, with everything floated, including the opening <ul> tag, which keeps all the floated <li>s from overflowing their containers. Because we all know how painful that can be.

And that leaves us with one more area of table abuse: the top line of each comment, with the commenter’s information, rating buttons, etc.

Advertisement

209 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Account Settings Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► LGF Hits

► Resources

► Never Forget

► Statistics

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

An equal opportunity sacred ox gorer.

TwitterFacebook
LGF Pages
Recent Pages

No. Just, no.
The least romantic city in the US
3 hours, 27 minutes ago
Views: 61 • Comments: 1
Tweets: 0 • Rating: 0

No. Just, no.
Psycho jerk was psycho
3 hours, 47 minutes ago
Views: 61 • Comments: 1
Tweets: 0 • Rating: 0

researchok
Forrest GOP
5 hours, 42 minutes ago
Views: 78 • Comments: 0
Tweets: 2 • Rating: 1

researchok
Obama Plan Will End Dozens of Business Tax Breaks
6 hours, 50 minutes ago
Views: 95 • Comments: 0
Tweets: 1 • Rating: 1

Randall Gross
NBCU Taps Google to Create Cross-Platform Audience Metric for 2012 Olympics
7 hours, 37 minutes ago
Views: 79 • Comments: 0
Tweets: 0 • Rating: 2

Randall Gross
Exclusive: Church Probes How Priest Was Ordained After Abuse Sacking - Main Section - Yorkshire Post
7 hours, 40 minutes ago
Views: 98 • Comments: 0
Tweets: 0 • Rating: 2

Randall Gross
Santorum's Stone-Age View of Women
7 hours, 42 minutes ago
Views: 150 • Comments: 0
Tweets: 1 • Rating: 2

Channeling Confucius
The Dogs Against Romney Facebook group tries to put on an IRL protest against the Republican outside the Westminster Kennel Club
7 hours, 51 minutes ago
Views: 90 • Comments: 0
Tweets: 0 • Rating: 0

Bob Dillon
Hidden Communal Guns Are More Common
8 hours, 15 minutes ago
Views: 126 • Comments: 2
Tweets: 0 • Rating: 3

Daniel Ballard
Barack Obama says preventive care 'saves money'-No It Does Not
9 hours, 1 minute ago
Views: 428 • Comments: 74
Tweets: 3 • Rating: 2

 Frank says:

The last election just laid the foundation for the next 500 years of Dark Ages. -- From 1981