Re: css print
by "Paul Roberts" <hwg(at)roberts200025.freeserve.co.uk>
|
Date: |
Tue, 30 Sep 2003 20:41:38 +0100 |
To: |
"Hall, Richard H." <rhall(at)umr.edu> |
Cc: |
<hwg-basics(at)hwg.org> |
References: |
|
|
todo: View
Thread,
Original
|
|
strange, with a bit of playing i got it to work by
add MEDIA=3D"screen" to the normal style sheet link and=20
remove the POSITION: absolute; from the #content style
not sure this be a bug in mozzilla
Best Wishes
Paul Roberts
mail at Paul-Roberts dot com
----- Original Message -----=20
From: "Hall, Richard H." <rhall(at)umr.edu>
To: "Paul Roberts" <mail(at)paul-roberts.com>
Sent: Tuesday, September 30, 2003 1:41 PM
Subject: RE: css print
Thanks for the advice on the pts, I changed it ... unfortunately, =
removing the float statement didn't seem to have much effect ... Richard
> -----Original Message-----
> From: Paul Roberts [mailto:mail(at)paul-roberts.com]
> Sent: Monday, September 29, 2003 3:42 PM
> To: Hall, Richard H.; hwg-basics(at)hwg.org
> Subject: Re: css print
>=20
>=20
> Hi
>=20
> try taking the float: none; out and see what happens, text=20
> seems to be floating off the page.
>=20
> also as it's print use pts instead of px as these are what=20
> printers understand.
>=20
> Best Wishes
>=20
> Paul Roberts
> mail at Paul-Roberts dot com
> ----- Original Message -----=20
> From: "Hall, Richard H." <rhall(at)umr.edu>
> To: <hwg-basics(at)hwg.org>
> Sent: Monday, September 29, 2003 7:54 PM
> Subject: css print
>=20
>=20
> I'm trying to get the content of a page to print as just=20
> black text filling up a series of pages.
>=20
> My css seems to work in IE 6, though it tends to cut off in=20
> the middle of a line.
>=20
> In Mozilla it won't go to a second page.
>=20
> Any help would be much appreciated
>=20
> an example page is at:=20
> http://www.mediatation.net/mediatations/03_09_18_size.shtml
>=20
> The CSS print style sheet includes:
>=20
> body {
> background : white;
> font-size : 12pt;
> }
>=20
> #logo {
> display: none;
> }=20
>=20
> #banner {
> display: none;
> }
>=20
> #logo-picture {
> display: none;
> }
>=20
> #menu {
> display: none;
> }
>=20
> h1 {
>=20
> font-size: 18px;
> text-align: center;
>=20
> }
>=20
> h2 {
>=20
> font-size: 16px;
>=20
> }
>=20
> h3 {
>=20
> font-size: 14px;
>=20
> }
>=20
> /* make sure not border around images when they are links */
>=20
> img {
>=20
> border: 0
>=20
> }
>=20
> #content {
> float: none;
> width: 7in;
> margin: 0;
> padding: 0;
> border: 0;
> color: black;
> top: 0;
> left: 0;
> position : absolute;
> }
>=20
> .quote {
> padding-left: .25in;
> padding-right: .25in;
> background: transparent;
> float: none;
> font-style : italic;
> }
>=20
> ... thanks ... Richard
>=20
> *******************************************************************
> Richard H. Hall, Ph.D., rhall(at)umr.edu
> Associate Professor, Information Science and Technology
> University of Missouri - Rolla
> http://medialab.umr.edu/rhall
> *******************************************************************
>=20
>=20
>=20
>=20
>=20
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA