midwest web design

Creating a CSS — Layout

In recent years, designing websites with CSS has become a popular trend. The advantages to designing a website with CSS are that it allows developers to create stable layouts which work in a variety of browsers; it provides separation of structure (code) from presentation (formatting text) and developers can change the look and feel of their website if desired in a short amount of time.

Designing websites with CSS can also make websites load faster on slower Internet connections, since less structural code is read by the browser and external style sheets are cached in local memory on our visitor’s computer. However, websites designed with CSS can be problematic for new comers, because the mythology behind creating, organizing and coding these websites is different than with tables. Once developers have grasped and understood the correct approach and method when designing and planning your website with CSS, developers realize their website has less code and greater flexibility for future changes.

In this article, we’ll learn:

If you would like to follow this article’s step-by-step development or even try your hand at creating a CSS-Layout, you will find the project file links helpful.

See Demo

Printable Version
Word PDF
Download Project Files
Zip

Create our layout – Fireworks

A basic knowledge of Fireworks is needed to complete this section. If you’re not comfortable with this editor, you may use Photoshop. If you’re not comfortable with either, it’s recommended you spend a few hours visiting either’s help documentation. For our purposes, we’ll use Fireworks. Open Fireworks by following these steps:

Inside Fireworks, from the main menu, select File>New and enter the values as shown:

Fireworks - New Document

Import header and footer image

We’ll import the header and footer image provided from the project files download. In Fireworks, follow these steps:

Fireworks - Carpenters Hand

Follow the same steps to import our footer image, except adjust x-y coordinates as follows:

Create the dashed line

Our dashed line will serve as a visual separator between our left and right “columns.” Follow these steps to create it:

Fireworks - Line Tool

Fireworks - Ruler

Fireworks - Stroke

Fireworks - Stroke Category

Fireworks - Hard Dash Selection

Create the left column pattern

Our left column has a light gray background pattern to help visualize the difference between the two columns. Follow these steps to create it:

Fireworks - Rectangle Tool

Create the background

Our website has a subtle patterned image which repeats through our web page. Follow these steps to create it:

Slicing our graphics

Each of our web graphics will be exported as JPEG images. With this in mind, follow these steps to set JPEG as the default export option:

Slice header and footer

We need to slice each of these graphics independently so that we can insert them in our web page when needed. Follow these steps to slice each one:

Slice our page background

Follow these steps to slice our page background:

Slice our columns

In order to create and simulate equalizing columns in CSS, we have to be creative with the use of images. In our layout, we’ll create one slice which will span both our left and right columns. We’ll then write a CSS rule which will repeat this graphic along the y-axis. When content is added to our web page, the graphic will repeat vertically which simulates equalizing columns. More on this concept will be discussed later when developing our web page. Follow these steps to slice our two columns:

Fireworks - Slicing two columns

Export and save our images

In Fireworks, we can export and save our images using the same method. Follow these steps:

Fireworks - Slice tool

Navigate to the directory where you have stored the project files download, your images should be present. At any time, you can modify colors, text and then export your images to your directory and they will be reflected in your website.

Save our layout

In order to make modifications to our layout in the future, we need to save it as a portable network graphic (PNG), which is Fireworks native editable format. Follow these steps:

Once completed, close Fireworks, we’re done with it.

We'll continue with creating our web page next.

top of page

Thank you for visiting Fabrizio.com - Come back again soon.