Title: Tech Times
Email not displaying correctly? View it in your browser.

Issue 212: October 21, 2008  Tips, Tricks, News and Reviews for Web Coders

Introduction

Kevin YankLast issue I promised you the low-down on my latest book. As it turns out, I can do you one better: you're the first to read the news of its launch!

Everything You Know About CSS Is Wrong is now available to order direct from SitePoint. Read on for the details, and a few "deleted scenes!"

Top

Hosting over 1,000 websites just got easier!

Find out how...
Now Offering Windows 2008/ IIS 7 Dedicated Servers

Don't miss this opportunity to experience Windows 2008 Server and IIS 7. Sign-up today and receive one month FREE service with purchase of a 12 month dedicated server contract.*

Why wait? Get Windows Server 2008 with IIS 7 today and take advantage of many new features including:

  • Automated Application Pool Isolation
  • Virtual Directories support network paths
  • PHP already installed
  • New caching system
  • Metabase Hunting

TryWindowsServer2008.com

Summary

Everything You Know About CSS Is Wrong

by Kevin Yank

From the opening chapter of Everything You Know About CSS Is Wrong:

Whether you consider yourself a CSS layout expert, have previously tried to learn CSS layout techniques and given up in frustration, or are only just exploring CSS for the first time, everything you know about CSS is wrong.

The
cover of the book Everything You Know About CSS Is Wrong features the
eraser end of a pencil erasing the letters "CSS"Everything You Know About CSS Is Wrong, written by me and Rachel Andrew, describes how the CSS landscape is about to change dramatically. Over the next year or so, CSS will become more powerful, more reliable, and—most importantly—a lot easier to use. You just have to be prepared to rethink the way you use it—or the reasons you avoid it.

In a recent video interview for Standards Suck, I talked about the big shake-up that is about to hit the world of CSS layout, and the reason we wrote this book. Check it out if you're curious:


Click to view the video

Rather than rehash the basics of the book, I thought it would be fun to show you some "deleted scenes", interesting passages that were removed from the book because they didn't quite fit in.

In her first draft of Chapter 1, Rachel had chronicled the history of CSS support in browsers. Full of long-lost screen shots and unbelievable anecdotes, it was great stuff. In the end, though, we decided the book needed to get right to the point, and this material was removed.

I hope you enjoy this look back into CSS history, and pick up Everything You Know About CSS Is Wrong for a glimpse into its future.

Top

Humble Beginnings

by Rachel Andrew

Tim Berners-Lee (who invented the Internet in 1989, and also wrote WorldWideWeb, the very first web browser) developed Hypertext Markup Language, or HTML, as a means to structurally mark up online documents such as research papers so they could be linked together. We take it for granted now, but in those days HTML did not provide a method to style documents. The initial implementation didn't even give the author a way to change colors and fonts; the decision of how the different structural elements should be displayed was left to the developer of the browser, as illustrated by the working draft from w3.org.

The ability to change color and font came via an early browser—NCSA Mosaic. With its launch in 1993, authors had the ability to add basic styles to their documents with the HTML font element. The Mosaic browser version 1 for Windows, shown here, also included nested lists and form fields. These elements weren't part of the core HTML specification, but were adopted by browser developers of the time.

The first Netscape browser was released in December 1994. It quickly became the most popular browser in use, thanks mainly to its additional features, such as multiple TCP/IP connections, cookies, and the <center> tag, but also because for the first time it was available on Unix, PC, and Mac. This was also the year that the World Wide Web Consortium (W3C) was formed, with the aim of creating interoperable technologies for the Internet.

Top

Minimize Your IT Risk For Rackspace Hosting Solutions.

Rackspace.com

Rackspace has been through downturns before, and has walked away stronger. We're now the managed hosting leader with a financially sound and rapidly growing business.

Why? We've perfected the hosting solutions and support that help Web Developers work even more economically and intelligently without large upfront hardware expenses, or system administration hassles.

  • 24x7x365 Expert live support
  • Industry-Leading service level guarantee for network uptime
  • 1-hour hardware replacement
  • Fanatical Support(R)Promise
Let one of our online consultants provide a custom, no-obligation quote.

Syntax That Didn't Make It

by Rachel Andrew

As early as 1993, proposals were being developed for a style language that could be used in the authoring of web pages. There were several proposals, mostly based upon existing style sheet languages. However, the Cascading Style Sheets proposal—developed initially by a research scientist, Håkon Wium Lie—was different to other languages, as it took into account the user-centric nature of the Web. It understood that the display of a document had to allow for the preferences of both the author and the user—and understood that a method was needed to decide which styles were to take precedence.

Those interested in the evolution of CSS may find Håkon's original proposal interesting. In this early example, you can see that the syntax is slightly different from the final specification, but the basics of selectors, properties, and values are all there:

font.family = times
font.size = 12pt # other units are px, mm, cm
font.slant = normal
font.weight = normal
h1.font.size = font.size * 3
h2.font.size = font.size * 2.5
h3.font.size = font.size * 2

It wasn't until December 1996 that the emerging CSS language became an official W3C recommendation, closely followed in January 1997 by HTML 3.2.

Top

Dreamweaver and the Bad Old Days

by Rachel Andrew

Those developers who started building sites in the early noughties often cut their teeth on an authoring tool such as Macromedia Dreamweaver. While there's nothing wrong with authoring HTML using a tool—in fact, with the complex nested table layouts of the time it was the only way to keep your sanity—the early HTML editors did encourage authors to consider only how the page looked, rather than think about the structural markup under the pages or whether it made any sense to any user agent other than the two main browsers.

As an example of the kind of issues the Web was facing at this time, Dreamweaver, from its early days, had the ability to lay out pages using the functionality called Layers. This was actually CSS positioning using absolute positioning from the top and left. Generally, a layout using Layers would, due to various incantations then included by Dreamweaver, work in both Netscape 4 and IE4 and up. However, if you needed to support earlier browsers (and realized this halfway through the build process) your only option was to convert your Layers to tables—resulting in a hideous mass of spacer GIFs and nested cells.

This advice from a Dreamweaver 3 Support Center page should fill the heart of any standards-aware developer with retrospective horror:

Converting your tables into layers and then back into tables allows Dreamweaver to add special invisible placeholders that keep your design intact for the browser. Do this for every table design you create to improve the look of your Web pages in a browser.

I don't intend to single out Dreamweaver in particular; this quote is simply an example of how most of us thought about web design at the time. We worried about how it looked in a restricted set of browsers, not whether it would work on other devices, or even be accessible. In fact, where accessibility was an issue, we'd circumvent it by building a set of text-only pages—another set of pages to maintain.

Top

Create and Deploy Rich Internet Applications on the Desktop with Adobe® AIR™ software.

With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web.

Deliver applications to the desktop that complement and expand your browser applications.

Download the Adobe AIR SDK and Ajax docs to start building applications today.

I hope you enjoyed this glimpse behind the scenes of Everything You Know About CSS Is Wrong, not to mention a peek into the history of CSS!

See you next week,

Kevin Yank
[EMAIL PROTECTED]
Editor, The SitePoint Tech Times

Top




Latest Release

The Ultimate HTML Reference

Book

Tell me more..

Free Book Samples

Simply _javascript_
Simply Rails 2
Build Your Own Database Driven Website Using PHP & MySQL, 3rd Ed.
The PHP Anthology, 2nd Ed.

New Technical Articles

6 Things To Like About Dreamweaver CS4

Alex WalkerAlex road tests the latest edition of Dreamweaver and finds more than enough good reasons to justify an upgrade. Some of the cool new features include: advanced _javascript_ interpretation, a Code Navigator, and a more user-friendly interface.

Full Story...

Distributed Processing With Flex and AIR

Jack HerringtonWhether you're searching for extra terrestrials or decoding DNA, cross-platform distributed processing has never been easier with Adobe AIR! In this tutorial, Jack shows you how to easily dispatch a PHP application's processing to the desktop of your application's many users.

Full Story...

 Techy Forum Threads

 More Techy Blog Entries

News & Trends

The Facebook Platform is Dead - Good, Let the Innovation Begin!
Microsoft Launches Open Source Web App Installer
3 comments
Opera: Just 4.13% of Web's Code is Valid
15 comments
Silverlight 2.0 Expands .NET Support, Adds Controls

Web Tech

An Easy Guide To Using Migrations in Rails
RDFa is now a W3C Recommendation
3 comments
How Smart Are You? Itâ?™s Quiz Time!
2 comments

_javascript_ & CSS

Techy Treasures #1: Feelin' Empty
4 comments

Help Your Friends Out

People you care about can benefit from the wealth of information on new and maturing technologies available on the Internet. Help them learn how to do it by forwarding them this issue of the Tech Times!

Send this to a friend
You are subscribed as : [EMAIL PROTECTED]

Unsubscribe [EMAIL PROTECTED] from this list.

Manage your subscriptions.

View the newsletter archives.

Mailing Address:
48 Cambridge St, Collingwood, VIC, 3066 AU
Phone: +61 3 9090 8200
© Copyright 2008 SitePoint. All rights reserved.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MIS.Suresh" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/missuresh?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to