13.02.2013 Views

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

98<br />

While floats and image replacement are still fresh in your mind, let’s give the list of worry topics and its heading some<br />

stylish treatment. Once again, use the Phark method to replace the heading text.<br />

div[id="content_sub"] h4 {<br />

height : 35px;<br />

width : 300px;<br />

padding : 0;<br />

background : url(../images/h4.png) no-repeat;<br />

text-indent : -9999px; }<br />

The list of topics that the site’s team of experts can worry about on your behalf will be transformed into a three-column<br />

design. You can achieve this by floating each of the list items and by using a background-image to provide a decorative bullet<br />

to complete the effect.<br />

div[id="content_sub"] ul {<br />

float : left;<br />

padding-bottom : 80px; }<br />

div[id="content_sub"] li {<br />

display : block;<br />

float : left;<br />

width : 190px;<br />

padding-left : 20px;<br />

background : url(../images/li.png) no-repeat 0 50%; }<br />

The result is shown in Figure 4-8.<br />

Figure 4-8. Floating list items: an effective way of creating column designs with simple lists<br />

Styling the footer<br />

Footers can sometimes be neglected parts of a design. Often, their minimal treatment can make your eyes simply wander off<br />

the bottom of the page.<br />

The WorrySome.net footer features a smaller version of the main logo and one of those ever so useful top links, so that the<br />

site’s visitors won’t need to worry about getting out of breath by scrolling all that distance up to the top of the page.

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

Saved successfully!

Ooh no, something went wrong!