Style Sheets
  Home arrow Style Sheets arrow Building a Simple CSS Framework
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

Building a Simple CSS Framework
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 6
    2009-02-19

    Table of Contents:
  • Building a Simple CSS Framework
  • Creating a simple reset style sheet
  • Defining a CSS file for creating liquid web page layouts
  • Building a two-column liquid web page layout

  • 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


    Building a Simple CSS Framework


    (Page 1 of 4 )

    The ability to reuse blocks of code is a blessing and a time saver to programmers everywhere. Web sites are too distinctive to allow you to do very much of this, right? Wrong. You can build a CSS framework to give you the flexibility you need, and use the time you save for the parts of your project that matter most. This five-part series shows you how.

    Introduction

    Let’s face it. Experienced web developers know that a certain dose of laziness is actually healthy, particularly when it comes to building large web applications on a tight headline. Naturally, I’m not saying that this is something that you should be bragging about in a job interview, but when it’s necessary to develop a huge web-based project, reusing certain blocks of code can save you from reinventing the wheel.

    However, in the terrain of web design things can be a bit more complex. It's not always easy to reuse a certain number of HTML templates, or even entire style sheets. Even so, it’s feasible to create several CSS files that can be reused for accelerating the development of distinct web sites.

    In other words, what I’m talking about here is creating a CSS framework that permits, with minor variations, you to style multiple web projects, without having to write long and complex style sheets from scratch. Besides, it’s possible that you’ve already built such a framework without being aware of it, or that you’re interested in learning how to create it in a painless way.

    If this is the case, then hopefully this group of articles will be useful to you, since in the course of its different tutorials, I’ll be demonstrating how to construct a simple, yet useful, CSS framework that will allow you to create and style several web page layouts, including fixed and liquid designs, by reusing only a few external style sheets.

    Of course, I’m going to start this educational journey with the very basic concepts, that is explaining how to build a basic CSS reset file, along with a couple of HTML templates. As you begin to grasp the logic behind all these processes, I’ll demonstrate how to create more complicated web page layouts.

    Hopefully, by the end of this series, you’ll be armed with the background required for building your own CSS framework, or for expanding the one that I plan to build in the next few lines.

    In either case, it’s time to start reading. Let’s get going!

    More Style Sheets Articles
    More By Alejandro Gervasio


       · Even when CSS can’t be framed successfully due to its intrinsic nature, it’s...
     

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