Apr 25, 2008
In this tutorial we're going to show how you may use the background we've created in the Obama's Background 1st part. But we're not only gonna show you how to put it inside a site body, but also how to create and structure the site main regions like the menu, main content, support column and footer.
Our objective is not only to assemble the whole site, but also show some CSS basic concepts and Fireworks intregration with Web.
The first thing we must do is to export our images. Since we're creating only the basic structure, we're only gonna need two images: background and logo.
Now let's create the html file. The structure will have 4 regions: #header, #main, #sidebar and #footer. Notice that we're gonna insert the #main and #sidebar inside a #content, this way we're gonna have a greater possibility to modify things in the future.
<img src="logo_obama.jpg" alt="Home Obama"/>
<div id="main">HERE IS THE MAIN CONTENT
Now let's create the CSS. You may use the text/CSS editor of your choice. We're using here CSSEdit, and we're going to open Live Preview. With that, we'll be able to view in real time the things we are modifying. Notice that the structure is really simple. We're inserting a body #total with "margin: 0 auto" and all the other elements inside it.
font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
background: #01245c url(bg_obama.jpg) no-repeat center top;
// AQUI ESTÁ NOSSO BG!
// Repare também que usamos a cor #01245C.
margin: 0 auto;
Check the final result... really simple, huh? You only have to structure well the code and practice!