Using the CSS nth-child selectors I’ve learned how to alternate colors using the Prototype library. Great to apply a style to your tables without having to apply styles by hand or using extra loops/counting with your server side scripting.
It’s really easy to make sure that a file downloads rather than load in a browser, here I walk you through making it happen with a .pdf file as well as a .jpg file.