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.

116<br />

Now I’ll create a 1-by-1-pixel image in Photoshop. I fill the image with a shade of light blue and set the layer to 70% opacity.<br />

Finally, I save the image using Photoshop’s PNG-24 setting, enabling transparency. Then I simply use this image as the background<br />

for the overlay, instead of the solid gray you see in Figure 5-6.<br />

#feature-content {<br />

position: absolute;<br />

bottom: 0;<br />

left: 0;<br />

height: 125px;<br />

width: 720px;<br />

background-image: url('transparent.png');<br />

}<br />

The result is quite similar to the original, but with the HTML and CSS text, it becomes more flexible, as shown in Figure 5-7.<br />

Figure 5-7. Adding transparency via the PNG image format nearly duplicates the www.simplygingeroot.com style.

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

Saved successfully!

Ooh no, something went wrong!