XML technologies / CSS / Advanced websites with CSS / A simple CSS layout / The layout
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
Many web page designs begin life as a sketch in a graphics program. Our first example page is no exception: we start with an example layout or “design mockup” created in Fireworks.
Figure: Designing the layout as a graphics file.
Starting with a visual representation, as we do here, lets us think about the page structure before we begin implementing it in CSS or XHTML. This gives us the opportunity to choose the best approach before writing a single line of code.
This layout divides the page into three areas:
a header containing the site logo and part of the main navigation;
the main area, consisting of a large image above a list of news items;
a sidebar containing some additional entries.
Figure: Marking the layout areas.
This could be described as a two-column layout with a header. Representing a design as a combination of its main areas makes it easier to decide how to implement it.
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg
back to top