HighDots Forums  

setting up CSS for printing

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss setting up CSS for printing in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Shank
 
Posts: n/a

Default setting up CSS for printing - 10-08-2004 , 09:10 AM






I need to setup a printable query results page. So far I've been using trial
and error settings in CSS. I'm sure there's a better way. How can I do
things like 1/2" margins all around and my table 100% width within those
boundaries. Then things like row heights of 3/8" or columns 1" wide.

How do I effectively translate pixels and resolutions into inches I guess?

thanks



Reply With Quote
  #2  
Old   
Spartanicus
 
Posts: n/a

Default Re: setting up CSS for printing - 10-08-2004 , 09:23 AM






"Shank" <shank (AT) tampabay (DOT) rr.com> wrote:

Quote:
I need to setup a printable query results page.
So you said in alt.html, the advice you got there was correct and still
applies. Not liking a reply is not an excuse for multi posting.

--
Spartanicus


Reply With Quote
  #3  
Old   
Mark Tranchant
 
Posts: n/a

Default Re: setting up CSS for printing - 10-08-2004 , 09:59 AM



Shank wrote:
Quote:
I need to setup a printable query results page. So far I've been using trial
and error settings in CSS. I'm sure there's a better way. How can I do
things like 1/2" margins all around and my table 100% width within those
boundaries. Then things like row heights of 3/8" or columns 1" wide.

How do I effectively translate pixels and resolutions into inches I guess?
Use a print style sheet, and use inches as your unit, as they are in the
CSS spec.

http://www.w3.org/TR/CSS21/syndata.html#length-units

body { margin: 0.5in; }

--
Mark.
http://tranchant.plus.com/


Reply With Quote
  #4  
Old   
Andreas Prilop
 
Posts: n/a

Default Re: setting up CSS for printing - 10-08-2004 , 10:23 AM



On Fri, 8 Oct 2004, Mark Tranchant wrote:

Quote:
Use a print style sheet, and use inches as your unit, as they are in the
CSS spec.
So are centimetre (cm) and millimetre (mm). It's time to change to
the metric system, which has been adopted in the USA in 1866 already.
<http://www.metric.org/>

Quote:
body { margin: 0.5in; }
body { margin: 0 }
is a better idea for a print style sheet, IMHO. The BODY margin will be
_added_ to the margin you specify under "Page Setup". Having "margin: 0"
in the style sheet, leaves you more room on the paper.

--
M. Pirard strikes again:
<http://www.alltheweb.com/search?q=don1t&_sb_lang=any>
<http://www.altavista.com/web/results?q=don1t&kgs=0&kls=0>



Reply With Quote
  #5  
Old   
Andrew Thompson
 
Posts: n/a

Default Re: setting up CSS for printing - 10-08-2004 , 10:37 AM



On Fri, 8 Oct 2004 17:23:37 +0200, Andreas Prilop wrote:

Quote:
So are centimetre (cm) and millimetre (mm). It's time to change to
the metric system, which has been adopted in the USA in 1866 already.
http://www.metric.org/
What have you got planned for National Metric Week? (Oct 10-16)

Time to whoop it up, big time..

I am not sure when Australia changed to metric, but it
was when I was young, so luckily I am largely metric'd
myself. This is fortunate because I love to trawl NASA's
site for arcane information on the planets, asteroids etc.,
and they have used metric measurements (mostly) since at
least the early 1970's.

There was an article in National Geographic on the planets of
the solar system. A reader objected to the use of metric units
of meaurement and NASA's response was words to the effect of
'we use metric, get used to it'. ;-)

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane


Reply With Quote
  #6  
Old   
Wes Groleau
 
Posts: n/a

Default Re: setting up CSS for printing - 10-09-2004 , 07:15 PM



Andrew Thompson wrote:
Quote:
the solar system. A reader objected to the use of metric units
of meaurement and NASA's response was words to the effect of
'we use metric, get used to it'. ;-)
And yet NASA lost a spacecraft because one of their
engineers assumed inches/feet/etc. when the specification
did not say and other engineers assumed metric.


--
Wes Groleau
Alive and Well
http://freepages.religions.rootsweb.com/~wgroleau/


Reply With Quote
  #7  
Old   
Andrew Thompson
 
Posts: n/a

Default Re: setting up CSS for printing - 10-09-2004 , 09:00 PM



On Sat, 09 Oct 2004 19:15:50 -0500, Wes Groleau wrote:

Quote:
Andrew Thompson wrote:
[ Trimmed, re-instated ]
(NASA - units of measurement)
Quote:
..they have used metric measurements (mostly)..
...
And yet NASA lost a spacecraft because one of their
engineers assumed inches/feet/etc. when the specification
did not say and other engineers assumed metric.
That is not how I heard it, NASA was always after metric,
but an external contractor assumed the old measurements.

Mind you, it was ultimately NASA's responsibility to check
that everyone was on the same measuring stick..

Hence the '(mostly)' which you trimmed. Gotta' focus on
details Wes. Distinctions like that can make the difference
between inches and millimetres. ;-)

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane


Reply With Quote
  #8  
Old   
Wes Groleau
 
Posts: n/a

Default Re: setting up CSS for printing - 10-10-2004 , 09:25 AM



Andrew Thompson wrote:
Quote:
That is not how I heard it, NASA was always after metric,
but an external contractor assumed the old measurements.
I can't be dogmatic on who did what, but as the story came
to me, the units were not stated in the specification.

--
Wes Groleau
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^
^ A UNIX signature isn't a return address, it's the ASCII equivalent ^
^ of a black velvet clown painting. It's a rectangle of carets ^
^ surrounding a quote from a literary giant of weeniedom like ^
^ Heinlein or Dr. Who. ^
^ -- Chris Maeda ^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^


Reply With Quote
  #9  
Old   
Pat Norton
 
Posts: n/a

Default Re: setting up CSS for printing - 10-10-2004 , 01:54 PM



Wes Groleau wrote
Quote:
as the story came to me, the units were
not stated in the specification.
You were misinformed. NASA used and specified metric units. The
subcontractor (Lockheed) failed to follow the specification and
delivered non-metric units.

Quote from official report
******************************
http://www.hq.nasa.gov/office/codeq/...mib_report.pdf
"the root cause for the loss of the MCO spacecraft was the failure to
use metric units... of Newton-seconds (N-s). Instead, the data was
reported in English units of pound-seconds (lbf-s). ... The SIS
[Software Interface Specification], which was not followed, defines
both the format and units"
******************************


Reply With Quote
  #10  
Old   
Stan Brown
 
Posts: n/a

Default Re: setting up CSS for printing - 10-11-2004 , 09:13 AM



"Pat Norton" <pat.norton (AT) iname (DOT) com> wrote in
comp.infosystems.www.authoring.stylesheets:
Quote:
You were misinformed. NASA used and specified metric units. The
subcontractor (Lockheed) failed to follow the specification and
delivered non-metric units.
And NASA failed to check up on its supplier because ...

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.