13.02.2013 Views

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

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.

102<br />

This will be followed by a specific rule for the individual anchors, according to their title attributes. These title attributes<br />

add a visual tooltip for each link and also allow you to target their anchors.<br />

a[title="Subscribe"] {<br />

left : 0; }<br />

a[title="Worrylist"] {<br />

left : 104px; }<br />

a[title="Worrycart"] {<br />

left : 208px; }<br />

You have already encountered the ^ symbol in previous selector examples and learned that this targets an<br />

attribute that begins with a particular value. In contrast, the $ symbol targets an attribute that ends with a<br />

particular value.<br />

Worrycart<br />

a[title$="worrycart"] {<br />

left : 208px; }<br />

Preview the finished result in your browser. To illustrate the anchors in position, I have added a red border to each of the<br />

anchors in Figure 4-11 (using the outline feature of the Web Developer Toolbar for Firefox).<br />

Figure 4-11. Showing the finished result, with anchors outlined for emphasis

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

Saved successfully!

Ooh no, something went wrong!