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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

424<br />

Chapter 16 ■ Tips <strong>and</strong> <strong>Techniques</strong><br />

<br />

<br />

<br />

<br />

Header content goes here.<br />

<br />

<br />

<br />

<br />

3. Create rules in the style sheet that not only create the left <strong>and</strong> right columns<br />

but also the rule they are nested inside of. Then add the code to the XHTML<br />

body (see Figure 16.7).<br />

Things to note about the code in step 3:<br />

■<br />

■<br />

The a5-main-content rule is added to force the positioning of the left <strong>and</strong><br />

right columns. It is positioned below the header, which is set to 180<br />

pixels high. Therefore, the rule positions the tag 180 pixels from<br />

the top. It also separates the nested left <strong>and</strong> right columns from the<br />

bottom footer area that will be added.<br />

The a5-column-left rule is created to force the to the top-left<br />

corner of the a5-main-content tag. The left property tells the<br />

tag to position itself 0 pixels from the left side. The margin-right<br />

property of the rule restricts its positioning by telling it that it must end<br />

its width at 232 pixels from the right-h<strong>and</strong> side of the page or tag<br />

in which it is nested.<br />

Figure 16.7<br />

<strong>Design</strong> with the left <strong>and</strong> right columns added to a tag that positions the content 180 pixels below<br />

the header .<br />

Game Developing GWX

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

Saved successfully!

Ooh no, something went wrong!