Be the first to write a review
As we left things in part two, the page itself was working and the style control panel could be used to easily change the font size and theme of the page. Visitors also had the opportunity to create a printer-friendly page consisting of just black and white styles. Before we look at saving visitors style choices, we're just going to tidy a couple of things up.
We didn't go back to the HTML file and add the relevant event handlers or ID attributes in part two, but if you went ahead and did this anyway, you may have noticed when switching to the print medium style that the controls div loses its background colour and the link text changes to purple to denote a visited link. This is only a trivial problem admittedly, but to me it just doesn't look professional. You can fix it by adding the style rules to be applied when no colour stylesheet is in force to the userControlledStyles.css file.
Dan Wellman is an author and web developer based in the UK. Dan has written three books so far; the latest, jQuery UI 1.7: The User Interface Library for jQuery, was released at the end of 2009.
Dan has been writing web development tutorials for over 5 years and works by day for a local digital media agency in his home town of Southampton.
You must me logged in to write a review.