First things first
Obviously you can't just launch straight into paragraphs of text right at the top of your page, or your users won't know where they are and will be unlikely to read on. Normally the first things on your page will be a logo image which links back to the homepage, followed by your main navigation, and possibly some interactive elements such as search or login forms.
These initial elements allow the user to establish what site they are on, and to quickly see the main sections they can navigate to. Immediately after these elements, you should place your main content section, and only after that, any additional content which is of less importance, such as secondary navigation, extra links, buttons, ads etc.
Content order can be independent of page layout
Using CSS floats, it's actually possible to achieve (almost) any layout you can think of. As shown in the following examples, two pages with the exact same HTML markup (except for a necessary extra div in the last one) can be displayed in completely different layouts by the clever use of CSS styles.
The HTML markup
I've defined some common styles so you can easily see the placement of the content:
Single column
This is the easiest way to keep your main content near the top of the page, simply let the additional content stack beneath it. No floating required, the order your content appears in the HTML is the order it will appear on the page.
Primary Content
Secondary Content
Tertiary Content
Two columns
You can easily position your main content to the left or right of the secondary content by using floats:
Main content on the left
Primary Content
Secondary Content
Tertiary Content
Main content on the right
Primary Content
Secondary Content
Tertiary Content
Three Columns
Main content on the left
Primary Content
Secondary Content
Tertiary Content
Main content on the right
Primary Content
Secondary Content
Tertiary Content
Main content in the centre
Note: This layout requires an extra div (class="wrap") to be placed around the primary and secondary content and floated left, in order for the primary content to be floated right within it.
Primary Content
Secondary Content
Tertiary Content
Search this site
Learn how to make fantastic web site designs..
Buy "Save the Pixel" now!
On “Save the Pixel”
Sign up for my Newsletter!
Sign up for my regular newsletter to keep updated on everything I'm doing and thinking about in web design.
Share this Article
Send to a friend now&hellip
-
Floor 3
111 Buckingham Palace Road
London
SW1W 0WQ
UK
- Phone
+44 (0)207 1600 989
For your site to be accessible you should also include a "Skip Navigation" link, to allow users with screen-readers to skip straight to the main content.