Book Image

Joomla! 1.5 Templates Cookbook

Book Image

Joomla! 1.5 Templates Cookbook

Overview of this book

Templates in Joomla! provide a powerful way to make your site look exactly the way you want either using a single template for the entire site or a separate template for each site section. Although it sounds like an easy task to build and maintain templates, it can be challenging to get beyond the basics and customize templates to meet your needs perfectly.Joomla! 1.5 Templates Cookbook consists of a series of self-contained step-by-step recipes that cover everything from common tasks such as changing your site's logo or favicon and altering color schemes, to custom error pages and template overrides. It starts off with the basics of template design and then digs deep into more complex concepts. It will help you make your site more attractive and user-friendly. You will integrate your site with various social media such as Twitter and YouTube; make your site mobile-friendly with the help of recipes for creating and customizing mobile spreadsheets; and use miscellaneous tricks and tips to get the most out of your website. You get all of this in a simple recipe format that guides you quickly through the steps and explains how it all happened.
Table of Contents (16 chapters)
Joomla! 1.5 Templates Cookbook
Credits
About the Author
About the Reviewers
Preface

Styling links for print


Hyperlinks are fundamental in web pages, but they don't transfer so well to print.

Getting ready

Open the print.css file in the templates\rhuk_milkyway\css directory.

How to do it...

There are two aspects to styling links for print:

  • How the link itself appears within the printed version of the page: It's a good idea to distinguish links that appear within content from normal text, as this can provide some context to the surrounding content. For example, it can tell a reader of the printed version that more information on a topic mentioned within the original article on the Web and recommended by the article's author was available.

    To this end, we'll use the following CSS in our print stylesheet:

    a, a:active, a:link, a:visited {
    font-weight: bold;
    text-decoration: underline
    }
    
  • How to get across the context of the link (the destination of the link) on paper: Hyperlinks work on the Web because you're able to click (or otherwise select) the link and view the content on that...