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.

204<br />

To get it looking like the proposed design, the CSS needs to push the whole lot over to the right, apply the necessary backgrounds,<br />

and allow enough space to the left of the first link so the little printer icon is visible. Here’s the CSS that lets us do this:<br />

p.printbutton<br />

{<br />

background-image:url(print-button-para-bg.gif);<br />

background-repeat:no-repeat;<br />

background-color:#576374;<br />

float:right;<br />

padding:6px 0 0 40px;<br />

}<br />

#sect1 p.printbutton a<br />

{<br />

background-image:url(print-button-bg.gif);<br />

background-repeat:no-repeat;<br />

padding:2px 0;<br />

margin:0 10px 0 0;<br />

color:white;<br />

text-decoration:none;<br />

width:110px;<br />

height:19px;<br />

font-weight:bold;<br />

font-size:x-small;<br />

display:block;<br />

float:left;<br />

text-align:center;<br />

}<br />

Pulling it all together<br />

The scripts have been inserted in the document head, the<br />

styles for the generated links have been defined, and the page<br />

has had all the necessary ids applied that will make the technique<br />

work. Figure 8-13 shows the finished result as seen on<br />

screen (in the Windows version of Firefox).<br />

Figure 8-13. The finished web page

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

Saved successfully!

Ooh no, something went wrong!