11.11.2014 Views

Professional Web Design: Techniques and Templates, Fourth Edition

Professional Web Design: Techniques and Templates, Fourth Edition

Professional Web Design: Techniques and Templates, Fourth Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

214<br />

Chapter 9 ■ Case Study: Low-Content CSS <strong>Design</strong><br />

There are several things to note about the code in Listing 9.5:<br />

■<br />

■<br />

■<br />

The a5-body-content container is renamed a5-body-content-sl because it<br />

uses a different background image for the second-level pages that is lightened<br />

to help make the text more visible on the pages where it is layered over<br />

the woman. The a5-body-content-sl rule then calls this new image.<br />

The margin-right:15px; code, as on the homepage, ensures that the text will<br />

never touch the right side of the browser window if it is a liquid design that<br />

exp<strong>and</strong>s to the full width of the screen.<br />

The a5-sl-title rule is added to allow the designer to place a title on<br />

every page so the user knows which page is selected. The main thing to note<br />

about this code is that because the container is given padding, the Tantek<br />

hack is used so the height of the row is the same in the tested browsers,<br />

which included IE 5 <strong>and</strong> 5.5 for this design. A margin-bottom value of 10px<br />

is also added to provide space between the title area <strong>and</strong> the text for<br />

that page.<br />

Adding a Floating Container for Additional Content<br />

In the case study designs in Chapters 10, 11, 12, <strong>and</strong> 13, a third column is<br />

added to allow for more layout options. In this design, however, a new is<br />

merely added <strong>and</strong> floated to the right side of the text to allow for similar functionality.<br />

Figure 9.18 illustrates what the new code (outlined in Listing 9.6) will<br />

look like.<br />

Note<br />

The newly added code is bold to differentiate it from the existing code that is being built upon in this<br />

case study.<br />

Listing 9.6 Code for Figure 9.18<br />

<br />

<strong>Design</strong> 121<br />

<br />

<br />

Game Developing GWX

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!