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.

Building the Structure 237<br />

This container is added because it will contain a background image in the second-level<br />

pages. By building the design around it in the homepage, the secondlevel<br />

pages, which are built from the homepage, are easier to construct because<br />

the base foundation of the code is already incorporated into the code. Following<br />

is the rule once it is added to the style sheet:<br />

#a5-body-content {<br />

position:relative;<br />

margin-left:191px;<br />

height:349px;<br />

border:1px solid #000000;<br />

}<br />

There are three things to note about the preceding code:<br />

■<br />

■<br />

■<br />

The code has relative positioning so that it will flex to the full width of the<br />

a5-body container within which it is nested. This helps ensure that the design<br />

can also serve as a liquid design if the width of the a5-body rule is<br />

changed to 100%.<br />

The container is assigned a value of 191px to its margin-left property. This<br />

forces its left side 191 pixels from the left side of the design, so it is placed<br />

just past the left column.<br />

The height property is added to ensure that the container is 349 pixels high,<br />

which is the height of the background image that is added.<br />

Adding the Top-Right Images<br />

The first stage in adding the content in the right parent column is to add the topright<br />

images. Figure 10.9 illustrates the design once the images are added into the<br />

code, which is included in Listing 10.3.<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 />

Game Developing GWX

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

Saved successfully!

Ooh no, something went wrong!