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.

Building the Structure 235<br />

■<br />

The a5-menu a descendant rule is used to display <strong>and</strong> style each menu item.<br />

The display property with the block value will output each item in the<br />

in its own row. The line-height is set to 20 pixels. Unlike the design<br />

in Chapter 9, the vertical-align property is not assigned here because it<br />

will move the text in relation to the background image, which is declared<br />

using the following shorth<strong>and</strong> code: background: url(images/bg-menu-off.<br />

gif) no-repeat 0px 0px;.<br />

■<br />

Note<br />

The a5-menu a:hover rule is used to reassign the background image from<br />

bg-menu-off.gif to bg-menu-on.gif <strong>and</strong> the color of the text from #ffffff<br />

to #F9F68C when the user mouses over the text.<br />

There is a case difference between the color of the a link <strong>and</strong> the hover link (that is, #ffffff <strong>and</strong><br />

#F9F68C). The reason for this is that #ffffff was entered manually while building the site,<br />

<strong>and</strong> #F9F68C was copied from the Color Picker in Photoshop when grabbing the exact HEX color<br />

(see Figure 10.7).<br />

■ The image-bottom-left.jpg image below the menu is added after the a5-<br />

menu in the code. It has no styling added to it other than the <br />

tags wrapped around it.<br />

■<br />

The a5-copyright rule positions the copyright text below the image-bottomleft.jpg<br />

image, using padding around the text. The padding:20px 50px 10px<br />

10px; code adds 20 pixels of padding to the top of the text, 50 pixels to the<br />

right, 10 pixels to the bottom, <strong>and</strong> 10 pixels to the left.<br />

Figure 10.6<br />

Space that is added between the logo <strong>and</strong> the menu area in IE 5, 5.5, <strong>and</strong> 6 because<br />

tags were not wrapped around the image.<br />

Game Developing GWX

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

Saved successfully!

Ooh no, something went wrong!