Home arrow Style Sheets arrow Page 3 - Extending the Rule Of Thirds for Web Page Layouts
STYLE SHEETS

Extending the Rule Of Thirds for Web Page Layouts


Welcome to the sixth part of a seven-part series that explains how to apply fundamental design principles to your web page layouts. In this article you'll learn more about applying the Rule of Thirds to your designs.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 1
July 30, 2009
TABLE OF CONTENTS:
  1. · Extending the Rule Of Thirds for Web Page Layouts
  2. · Review: the Rule of Thirds with a two-column web page layout
  3. · Rule of Thirds variation: inverting column positions
  4. · Completing the sample web page layout

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Extending the Rule Of Thirds for Web Page Layouts - Rule of Thirds variation: inverting column positions
(Page 3 of 4 )

Since I just quickly reviewed how to use the Rule Of Thirds to build a two-column web page layout whose side bar was placed to the left of the web document, it’s time to see how this same approach can be used for inverting the position of this bar to produce a design where it will be shifted to the right side instead.

Given that, here is the group of CSS styles that will generate this whole new layout. Take a look at them:

body{

padding: 0;

margin: 0;

background: #eee;

}

#container{

width: 900px;

margin: 0 auto;

background: #ccc;

}

#header{

height: 100px;

padding: 10px;

background: #fc0;

}

#sidebar{

float: right;

width: 280px;

height: 400px;

padding: 10px;

}

#content{

margin-right: 300px;

height: 400px;

padding: 10px;

background: #fff;

}

#footer{

clear: both;

height: 100px;

padding: 10px;

background: #ffc;

}

h1,h2,p{

margin: 0;

}

As you can see, the above CSS code is quite simple to follow. All it does is float the side bar to the right side of the web page, while the content area has been shifted to the left. Here, it’s clear to see how easy it is to generate a handy variation of the classic two-column design, while still maintaining the proportion dictated by the Rule Of Thirds.

Having already coded the CSS styles required for constructing this specific web page layout, I’m going to link the styles to the structural markup of the web document, in this way finishing the development of this practical example.

So, to see how this process will be accomplished, jump ahead and read the following section. It’s only one click away.


blog comments powered by Disqus
STYLE SHEETS ARTICLES

- CSS Combinators: Working with Child Combinat...
- CSS Combinators: Using General Siblings
- Intro to CSS Combinators
- CSS Semicircles and Web Page Headers
- Drawing Circular Shapes with CSS3 and Border...
- More CSS Pagination Link Templates
- CSS Pagination Links
- Animated CSS3 Image Gallery: Advanced Transi...
- CSS3 Animated Image Gallery: Transitions
- CSS3 Properties: Fixed Heights with box-sizi...
- CSS3 Properties: Altering Strokes and 3D Eff...
- CSS3 Properties: Text-Stroke
- CSS3 Transitions: Width and Height Properties
- Creating a Drop Down Menu in CSS3
- Intro to CSS Transitions

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 5 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials