Constructing Fixed Layouts with a Simple CSS Framework
If you’re searching for a guide to creating an extensible CSS framework that lets you build different web page layouts, you’ve come to the right place. Welcome to the third installment of a four-part series on building a simple CSS framework. This series walks you through creating a basic CSS framework which will help you to construct both liquid and fixed web designs very quickly, without having to spend endless, annoying hours coding multiple style sheets.
Constructing Fixed Layouts with a Simple CSS Framework - Adding a file to the CSS framework for fixed designs (Page 3 of 4 )
Definitely, providing the existing CSS framework with the capacity for working with fixed web page layouts is a straightforward process that can be tackled with minor hassles. Basically, incorporating this feature only requires coding an additional CSS file that assigns fixed widths to each column that comprises the layout in question.
So, based upon this concept, below I included the signature of this brand new CSS file. As you’ll see in a moment, it will make building fixed designs a no-brainer procedure. Here’s how it looks:
font: normal 8pt Verdana, Arial, Helvetica, sans-serif;
color: #000;
margin: 0 0 18px 0;
}
That was quite easy to grasp, wasn’t it? As you can see, all that I did above was build a new CSS file that assigns fixed widths to the selectors responsible for styling the main columns of a web document. In this case, these columns will also be centered on the browser, but this characteristic is completely optional and it can be easily modified to suit your own preferences and needs.
So far, so good. At this point, I demonstrated how to provide the CSS framework with the ability to construct fixed web page layouts. So, what comes next? Well, you may want to see how the prior CSS file can be used within the context of a concrete example.
Therefore, in the final section of this tutorial I’ll be setting up a practical example for you, to help you see how simple it is to build a fixed design using this CSS framework.
Go ahead and read the next few lines. We’re almost done!