Style Sheets
  Home arrow Style Sheets arrow Using Auto Margins with a Liquid Layout to...
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

Using Auto Margins with a Liquid Layout to Center DIVs with CSS
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 2
    2009-04-09

    Table of Contents:
  • Using Auto Margins with a Liquid Layout to Center DIVs with CSS
  • Getting started using auto-margins with a liquid design
  • Working with CSS auto-margins
  • Merging the presentation and structural layers into one single file

  • 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


    Using Auto Margins with a Liquid Layout to Center DIVs with CSS


    (Page 1 of 4 )

    Often, when building a web site, web designers must construct centric layouts with CSS. While accomplishing this task requires only familiarity with the basics of style sheets and (X)HTML, building layouts like these can be challenging, particularly for beginners. So, if you’re interested in learning different CSS approaches that permit you to create fully-centered web page layouts without suffering premature hair loss, keep reading. This is the fourth part of a series of articles that shows you how to center DIVs with CSS.

    Introduction

    This series shows you, with the help of numerous code samples, how to construct centric web document layouts very easily by using a group of proven CSS techniques. Now that you've been introduced to the main subject of this series, it’s time to summarize the topics that were treated in the previous tutorial, in case you missed it for some reason. In that article I explained how to build a fully-centered web page layout by using CSS auto-margins.

    Despite its seemingly-complex name, this technique is quite simple to implement. It consists of placing a DIV at the center of a web document by assigning a value of “auto” to its respective left and right margins.

    Indeed, CSS auto-margins allow you to center DIVs very easily, and additionally, can be used for building both fixed and liquid designs. Taking into account the inherent flexibility offered by this approach, in this fourth part of the series, I’ll be discussing how to construct an elastic, centered web page design by means of auto-margins.

    So, if you wish to master this CSS technique in a truly painless way, click on the link that appears below and keep reading. 

    More Style Sheets Articles
    More By Alejandro Gervasio


       · This part of the series discusses how to construct an elastic, fully-centered web...
       · I don't see how this article is different than the previous. The ONLY difference...
       · Well, that’s exactly the difference: the previous article shows how to use CSS...
     

    STYLE SHEETS ARTICLES

    - 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...
    - Pulling Web Page Elements with the Blueprint...
    - Pushing Web Page Columns with the Blueprint ...
    - Controlling Column Padding with the Blueprin...
    - Prepending Classes in the Blueprint CSS Fram...
    - Appending Grid Units with the Blueprint CSS ...
    - Changing Grid Units in the Blueprint CSS Fra...
    - The Blueprint CSS Framework
    - Building a Liquid Design with Evened Margins...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    Stay green...Green IT