You are here: Re: Limiting content width - DIV or BODY? « HTML « IT news, forums, messages
Re: Limiting content width - DIV or BODY?

Posted by Toby Inkster on 11/15/90 11:46

Michael Laplante wrote:

> In Gecko browser, DIV elements don't print across pages.

You're probably using absolute positioning in your print style sheet -- a
recipe for disaster.

Try the following print CSS:

#Osidebar, #Owbkgd, #Ohrtbt, #Otitle, #Ocuff,
#Ofadebar, #Obluesdbr, #Onavmenu, #Ovan
{ display: none; }
#Ologo, #Opagetitle
{ text-align: center; }
#Ocontent
{ margin: 0 2em; }

Save that as "print.css". Now replace this:

<link type="text/css" href="mystyles.css" rel="stylesheet" />

with this:

<link type="text/css" href="mystyles.css" rel="stylesheet"
media="screen,projection">
<link type="text/css" href="print.css" rel="stylesheet"
media="print">

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация