O'Reilly logo

Joomla! 1.5 Templates Cookbook by Richard Carter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Styling content for print

The content is probably the reason your visitors are printing a page from your website, so it's worthwhile spending some time to style the content a little more.

Getting ready

Open the template's print.css file that you created in templates\rhuk_milkyway\css\ in your preferred editor, which should contain your print style so far:

body {
background: #FFF;
color: #000;
font-family: "georgia", "times new roman", "times", serif;
font-size: 12pt;
}
/* Hide these elements from printing */
#tabmenu,
#search,
.bannergroup,
.buttonheading,
.module_menu,
#power_by,
#syndicate
{
display: none;
}

How to do it...

We now need to add more style to the print stylesheet to define styles for lists, headings, and other content.

  • Styling images: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required