Style Sheets
  Home arrow Style Sheets arrow Page 3 - Fundamental Design Principles for Web Page...
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

Fundamental Design Principles for Web Page Layout
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 6
    2009-06-25

    Table of Contents:
  • Fundamental Design Principles for Web Page Layout
  • The Golden Ratio law of proportion
  • Practicing divine proportion with an (X)HTML file
  • Applying the golden proportion to web 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


    Fundamental Design Principles for Web Page Layout - Practicing divine proportion with an (X)HTML file


    (Page 3 of 4 )

     

    In the previous segment, you learned what the golden ratio is, and more specifically how it can be utilized for creating aesthetically pleasant web page designs, at least theoretically speaking. Now it’s time to demonstrate how this proportion can be applied to creating a simple web page layout, composed of the classical header and footer sections and two primary columns.  

    I’m going to create the structural markup of the pertinent web page. The appropriate widths of the columns and other sections will naturally be assigned via a few simple CSS styles.  

    That being said, here’s how the bare bones structure of this web page looks:  

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    <title>2-column web page layout using the Golden Ratio</title>

    </head>

    <body>

    <div id="container">

    <div id="header">

    <h1>Header section</h1>

    </div>

    <div id="sidebar">

    <h2>Side column</h2>

    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>

    </div>

    <div id="content">

    <h2>Main column</h2>

    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>

    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>

    </div>

    <div id="footer">

    <h2>Footer section</h2>

    </div>

    </div>

    </body>

    </html>  

    As you can see, the markup of the above (X)HTML file speaks for itself. In this specific case, the file in question is comprised of a main container that wraps all the remaining sections, which have been identified as “header,” “sidebar,” “content” and finally “footer.” So far, the structure of this sample file should be fairly easy for you to grasp, since it looks similar to other files that you’ve probably coded hundreds of times before.  

    Admittedly, this part of the example is rather boring. However, this is about to change, since in the course of the following section, I’m going to code the CSS styles that will apply the golden ratio to the file shown previously.  

    To see how the divine proportion will be implemented by means of some simple CSS code, you’ll have to read the upcoming segment. 

    More Style Sheets Articles
    More By Alejandro Gervasio


       · This introductory part of the series explains how to take advantage of the Golden...
       · Your tutorial is superb. However, in the css it is not clear how you applied the...
       · Thanks for the comments. As the article clearly explains, the widths of columns are...
       · Thank you for your reply. The main column has 307pixels which is okay...
       · It’s clear. Just look at the CSS code more closely. The width of the side bar is set...
       · Hi,Thank you for your reply.Now it's clear.Cheers!
     

    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 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek