Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 21st, 2005, 12:58 AM
Shank
Guest
 
Posts: n/a
Default setting up CSS for printing

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


  #2  
Old July 21st, 2005, 12:58 AM
Spartanicus
Guest
 
Posts: n/a
Default Re: setting up CSS for printing

"Shank" <shank@tampabay.rr.com> wrote:
[color=blue]
>I need to setup a printable query results page.[/color]

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
  #3  
Old July 21st, 2005, 12:58 AM
Mark Tranchant
Guest
 
Posts: n/a
Default Re: setting up CSS for printing

Shank wrote:[color=blue]
> 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?[/color]

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/
  #4  
Old July 21st, 2005, 12:58 AM
Andreas Prilop
Guest
 
Posts: n/a
Default Re: setting up CSS for printing

On Fri, 8 Oct 2004, Mark Tranchant wrote:
[color=blue]
> Use a print style sheet, and use inches as your unit, as they are in the
> CSS spec.[/color]

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/>
[color=blue]
> body { margin: 0.5in; }[/color]

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>

  #5  
Old July 21st, 2005, 12:58 AM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: setting up CSS for printing

On Fri, 8 Oct 2004 17:23:37 +0200, Andreas Prilop wrote:
[color=blue]
> 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/>[/color]

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
  #6  
Old July 21st, 2005, 12:58 AM
Wes Groleau
Guest
 
Posts: n/a
Default Re: setting up CSS for printing

Andrew Thompson wrote:[color=blue]
> 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'. ;-)[/color]

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/
  #7  
Old July 21st, 2005, 12:58 AM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: setting up CSS for printing

On Sat, 09 Oct 2004 19:15:50 -0500, Wes Groleau wrote:
[color=blue]
> Andrew Thompson wrote:[/color]

[ Trimmed, re-instated ]
(NASA - units of measurement)[color=blue][color=green]
>> ..they have used metric measurements (mostly)..[/color][/color]
...[color=blue]
> 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.[/color]

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
  #8  
Old July 21st, 2005, 12:58 AM
Wes Groleau
Guest
 
Posts: n/a
Default Re: setting up CSS for printing

Andrew Thompson wrote:[color=blue]
> That is not how I heard it, NASA was always after metric,
> but an external contractor assumed the old measurements.[/color]

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 ^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^
  #9  
Old July 21st, 2005, 12:58 AM
Pat Norton
Guest
 
Posts: n/a
Default Re: setting up CSS for printing

Wes Groleau wrote[color=blue]
>as the story came to me, the units were
>not stated in the specification.[/color]

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"
******************************
  #10  
Old July 21st, 2005, 12:59 AM
Stan Brown
Guest
 
Posts: n/a
Default Re: setting up CSS for printing

"Pat Norton" <pat.norton@iname.com> wrote in
comp.infosystems.www.authoring.stylesheets:[color=blue]
>You were misinformed. NASA used and specified metric units. The
>subcontractor (Lockheed) failed to follow the specification and
>delivered non-metric units.[/color]

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/
 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles