Style Sheets
  Home arrow Style Sheets arrow Creating Three-Column Web Page Layous with...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
STYLE SHEETS

Creating Three-Column Web Page Layous with Negative Margins
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-09-03

    Table of Contents:
  • Creating Three-Column Web Page Layous with Negative Margins
  • A first step: a basic two-column web page layout
  • Building three-column web page layouts
  • Listing the full source code of the three-column web page design

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating Three-Column Web Page Layous with Negative Margins


    (Page 1 of 4 )

    Undoubtedly, one of most interesting aspects of building DIV-based web page layouts is that they can be created by means of different approaches, ranging from floating these containing elements to the left and right sides of a web document via the useful “float” CSS property, to implementing more complex techniques, such as using negative margins to accommodate the DIVs in question. In this third article in a four-part series, you will learn how to create the popular three-column web page layout using negative margins.

    Introduction

    The use of negative margins to create web page layouts that can be displayed consistently across most modern browsers isn't new; it has been used over the last few years successfully by many web designers. However, there's the possibility that you may want to learn how to put this technique to work for you, or that you need to fill some gaps regarding its usage.

    In either case, in these articles, you'll be provided with numerous hands-on examples to teach you how to build a decent variety of web page layouts using CSS negative margins. We started with the construction of different two-column liquid and fixed designs, and we will finish by creating more complex ones, including the classical three-column layout.

    Since at this point you're well aware of the main subject of this article series, I'm going to spend a few minutes refreshing the topics that were discussed in the last tutorial. This will establish continuity between the aforementioned article and this one, which hopefully you're reading with interest.

    In simple terms, in the preceding installment I showed you how to use the so-called CSS negative margins to build a basic web page layout composed of two primary columns, located obviously to the left and right sides of a given web document respectively.

    In this particular case, the purpose in building this rudimentary layout was simply to demonstrate how easy it is to swap the respective positions of the columns in question within a web page, by specifying a negative value for the margin of one of these primary columns.

    So far, so good. At this moment I assume that you understand how to create two-column web page layouts by using negative margins, so it's time to continue exploring the helpful capabilities offered by this useful CSS approach for constructing multi-column web documents.

    So, in the next few lines I'm going to walk you through the creation of some solid three-column web page layouts by using CSS negative margins. Ready to go through this third chapter of this educational journey? Let's begin now!

    More Style Sheets Articles
    More By Alejandro Gervasio


       · This third installment of the series demonstrates how to use negative CSS margins...
       · Hi Alejandro,I have been playing with your 3-col CSS layout (many thanks for...
       · Thanks Martin for the comments on my CSS article. First off, negative CSS margins...
       · Hi Alejandro,Thanks for taking the time to reply. The frames issue is because at...
       · Hey Martin,If you’re getting more problems with your linked lists, try...
     

    STYLE SHEETS ARTICLES

    - Image Replacement CSS Techniques
    - Using BlueTrip`s Success, Notice and Error C...
    - More Uses for the Thin and Caps CSS Classes ...
    - Styling Definition Lists with the BlueTrip C...
    - Styling Unordered and Ordered HTML Lists wit...
    - Using the BlueTrip CSS Framework`s Thin and ...
    - Adding Borders to Web Page Columns with Blue...
    - Introducing the BlueTrip CSS Framework
    - Using a Background Grid to Assist Web Page L...
    - Extending the Rule Of Thirds for Web Page La...
    - A Two-Column Web Page Layout Based on the Ru...
    - Using the Rule Of Thirds for Web Page Layout
    - Swapping Columns Using the Divine Ratio for ...
    - Using the Golden Ratio in Liquid Web Page De...
    - Fundamental Design Principles for Web Page L...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek