Is there a good how-to and/or example of
a simple way to have a web page look decent
on both screen (in most browsers) and in print?
The example in the W3C CSS manual does NOT do it.
--
Wes Groleau
Even if you do learn to speak correct English,
whom are you going to speak it to?
-- Clarence Darrow 12 2453
Wes Groleau gr**********@freeshell.org wrote: Is there a good how-to and/or example of a simple way to have a web page look decent on both screen (in most browsers) and in print?
The example in the W3C CSS manual does NOT do it.
Simply having a decent print stylesheet generally works.
--
eric www.ericjarvis.co.uk
"live fast, die only if strictly necessary" Is there a good how-to and/or example of a simple way to have a web page look decent on both screen (in most browsers) and in print?
The example in the W3C CSS manual does NOT do it.
Simply having a decent print stylesheet generally works.
Then I guess mine (and the W3C example) is not decent.
Thanks for clearing that up.
Who's the professor for my next class?
--
Wes Groleau
-----------
Daily Hoax: http://www.snopes2.com/cgi-bin/random/random.asp
Wes Groleau wrote: Is there a good how-to and/or example of a simple way to have a web page look decent on both screen (in most browsers) and in print?
The example in the W3C CSS manual does NOT do it.
Simply having a decent print stylesheet generally works.
Then I guess mine (and the W3C example) is not decent.
Thanks for clearing that up.
Who's the professor for my next class?
OK, so now you've clarified that you understand print style sheets. What
do you mean by "look decent"? Give us a URL and some thoughts on what
you're trying to achieve.
Note that most browsers' printing functionality is quite limited.
--
Mark. http://tranchant.plus.com/
Wes Groleau <gr**********@freeshell.org> wrote: Is there a good how-to and/or example of a simple way to have a web page look decent on both screen (in most browsers) and in print?
The example in the W3C CSS manual does NOT do it.
Beware of buggy UA media support, some information here: http://www.codestyle.org/css/media/p...rSummary.shtml
Note that there are media bugs that are not/cannot be expressed in a
table like the above.
--
Spartanicus
On Tue, 28 Sep 2004 00:18:13 -0500, Wes Groleau
<gr**********@freeshell.org> wrote: Is there a good how-to and/or example of a simple way to have a web page look decent on both screen (in most browsers) and in print?
The example in the W3C CSS manual does NOT do it.
Simply having a decent print stylesheet generally works.
Then I guess mine (and the W3C example) is not decent.
Thanks for clearing that up.
Who's the professor for my next class?
Hope I'm not detecting snippiness!
When's a specific question going to be posed, hopefully coupled with a URL
of what didn't work for you? While you're at it, define "decent". Do you
want a similar layout as screen on the printout, do you want a different
but suitable rendering?
Spartanicus' suggestred link http://www.codestyle.org/css/media/p...rSummary.shtml is really
good, look that over to eliminate any obvious browser ignorance through
how you state the rule.
Mark Tranchant wrote: OK, so now you've clarified that you understand print style sheets. What do you mean by "look decent"? Give us a URL and some thoughts on what you're trying to achieve.
touché
OK, I guess "decent" is rather vague.
I guess just having all the text on the paper instead of
running off the right edge would be nice for starters.
Apparently "17 cm" is bigger than 8.5 inches to both
IE 6 and NS 7 Safari does seem to print on the page,
but pretty close to the edge, even though I've currently
specified a width of 11cm for printing.
If I could just get the #$%^&#$%^ thing to act like
it's not being completely ignored, then I'd be able
to tweak things.
I changed it to 11 cm, cleared the cache, cleared the history,
hit print again, and no change! I copied the CSS to a different
file, referenced it from a new copy of the web page (different
name, surfed to it, and tried that. No change!
Which is why I was hoping for a _working_ example
to start from. I didn't want to bug you guys for
every little detail. But, if anyone does want to
look, here it is: http://groleau.freeshell.org/bad-CSS.html
--
Wes Groleau
Free Genealogical Lookups: http://groleau.freeshell.org/ref/lookups.shtml
Spartanicus wrote: Beware of buggy UA media support, some information here: http://www.codestyle.org/css/media/p...rSummary.shtml
That looks like it will be very helpful. Thanks.
Maybe I should distribute my document(s) on a bootable
CD with Apache and Opera 7.11 pre-configured. :-)
Or put the whole thing in PDF. :-)
Problem with PDF is that I wanted to carry a subset of
the site in print and have it look sufficiently like
the web version that someone going after the missing
parts wouldn't get lost even if they were inexperienced
with the web. Having two PDFs, one with pages left out
is just as bad as having to maintain screen and printer
versions of every web page. Plus PDFs, being monolithic,
offer a loading time problem.
--
Wes Groleau
Heroes, Heritage, and History http://freepages.genealogy.rootsweb.com/~wgroleau/
Wes Groleau <gr**********@freeshell.org> wrote: I guess just having all the text on the paper instead of running off the right edge would be nice for starters.
IME, this is usually a symptom of a fixed-width layout that doesn't adapt
gracefully to the available display area. Just because you're providing a
print style sheet doesn't mean you know the size of the paper, the width of
the printer-enforced margins, the width of the browser-enforced margins,
the size of the font, etc. http://groleau.freeshell.org/bad-CSS.html
The URL of an HTML document that uses this style sheet would be helpful.
But just looking at the CSS, it seems my initial impression was right.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/
"Predictions are difficult, especially about the future." - Casey Stengel
Wes Groleau gr**********@freeshell.org wrote: Is there a good how-to and/or example of a simple way to have a web page look decent on both screen (in most browsers) and in print?
The example in the W3C CSS manual does NOT do it.
Simply having a decent print stylesheet generally works.
Then I guess mine (and the W3C example) is not decent.
Thanks for clearing that up.
Who's the professor for my next class?
They are all sitting in the senior common room waiting fort you to
actually decide what class you want to take.
It is possible to make print stylehseets that work well, without knowing
what problem you have with the w3c print stylesheet there's no way of
suggesting how to get around the problems other than to simply do it
right.
Posting to Usenet 1.02 is the queue over there ->
--
eric www.ericjarvis.co.uk
"live fast, die only if strictly necessary"
Darin McGrew wrote: IME, this is usually a symptom of a fixed-width layout that doesn't adapt gracefully to the available display area. Just because you're providing a print style sheet doesn't mean you know the size of the paper, the
width of the printer-enforced margins, the width of the browser-enforced margins, the size of the font, etc.
No, I don't know the size of the paper for everybody,
but I aimed it at 8.5 x 11 paper (99% of US printers),
by saying 17 cm. Not saying that's the ideal way to go,
but I thought it would be a good place to start. But
the two most common browsers both run the text off the
edge a little. Then I changed it to 11 cm and netscape
changed nothing.
And the font face and size are specified, though
Internet Explorer seemed to think that when I changed
width I made a mistake--it changed the font size instead! http://groleau.freeshell.org/bad-CSS.html
The URL of an HTML document that uses this style sheet would be helpful. But just looking at the CSS, it seems my initial impression was right.
Almost all of them on the site, e.g., http://groleau.freeshell.org/
(Though in many of them, you can't see the "run-off" because it
only shows on the longest lines.)
--
Wes Groleau
"A man with an experience is never
at the mercy of a man with an argument."
-- Ron Allen
I wrote: The URL of an HTML document that uses this style sheet would be helpful. But just looking at the CSS, it seems my initial impression was right.
Wes Groleau <gr**********@freeshell.org> wrote: Almost all of them on the site, e.g., http://groleau.freeshell.org/
(Though in many of them, you can't see the "run-off" because it only shows on the longest lines.)
FWIW, I got several 404 Not Found responses.
Anyway, using http://groleau.freeshell.org/education/K201/ as a test case,
I saw the clipping of the right edge when I configured my browser to use
1cm print margins, but not when I configured my browser to use 0.5cm print
margins. So your page can cope with a display area that's about 20.5cm
wide, but not with a display area that's about 19.5cm wide.
So I'm back to my original suggestion: Don't assume that you know how wide
the available display area is, even in a print style sheet.
And you should probably fix some of the CSS errors reported by http://jigsaw.w3.org/css-validator/
--
Darin McGrew, da***@TheRallyeClub.org, http://www.TheRallyeClub.org/
A gimmick car rallye is not a race, but a fun puzzle testing your
ability to follow instructions. Upcoming gimmick car rallye in
Silicon Valley: Monstah Mash 2004 (Saturday, October 2)
Darin McGrew wrote: FWIW, I got several 404 Not Found responses.
Website used to be elsewhere. Haven't finished moving it.
Former host required a not-so-convenient directory structure,
so some of the relative links are broken.
Anyway, using http://groleau.freeshell.org/education/K201/ as a test case, I saw the clipping of the right edge when I configured my browser to use 1cm print margins, but not when I configured my browser to use 0.5cm print margins. So your page can cope with a display area that's about 20.5cm wide, but not with a display area that's about 19.5cm wide.
Even though it's specified to be 17 cm -- excuse me, 11 cm wide.
This is what I find so confusing.
So I'm back to my original suggestion: Don't assume that you know how wide the available display area is, even in a print style sheet.
Yeah, well, I'm still trying to grasp the implications of that.
And you should probably fix some of the CSS errors reported by http://jigsaw.w3.org/css-validator/
:-) I suppose I should--but you should have seen how
many errors it had before I modified it, i.e., when it was
still EXACTLY as put in the W3C document !
:-)
--
Wes Groleau
After the christening of his baby brother in church, Jason sobbed
all the way home in the back seat of the car. His father asked him
three times what was wrong. Finally, the boy replied, "That preacher
said he wanted us brought up in a Christian home, and I wanted to
stay with you guys." This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: chuck amadi |
last post by:
By the way list is there a better way than using the readlines() to
> > >parse the mail data into a file , because Im using
> > >email.message_from_file it returns
> > >all the data i.e reads one...
|
by: Geoff Cox |
last post by:
Hello,
I publish some web pages using large fonts and would like to give the
user the opportunity to print the pages using a smaller font.
I believe that this is possible using different style...
|
by: David J Patrick |
last post by:
I'm trying to rewrite the CSS used in
http://s92415866.onlinehome.us/files/ScreenplayCSSv2.html.
using the w3.org paged media standards as described at
http://www.w3.org/TR/REC-CSS2/page.html
...
|
by: Roger Shrubber |
last post by:
Hello all
I have created a page which has several pictures on it. Each picture is
surrounded by a frame made from actual photos of real picture frames,
consisting of four corner tiles and four...
|
by: =?gb2312?B?yMvR1MLkyNXKx8zs0cSjrM37vKvM7NHEsru8+7z |
last post by:
I wanna print the log to both the screen and file, so I simulatered a
'tee'
class Tee(file):
def __init__(self, name, mode):
file.__init__(self, name, mode)
self.stdout = sys.stdout...
|
by: Brad Pears |
last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
|
by: tdartt |
last post by:
Howdy!
I'm fairly new to using css.
I have two style sheets:
<LINK href="printstyle.css" type="text/css" rel="stylesheet" media="print">
Which has (for example):
.dgAltLine
{
display: none;...
|
by: sophie_newbie |
last post by:
Hi, in my program i need to call a couple of functions that do some
stuff but they always print their output on screen. But I don't want
them to print anything on the screen. Is there any way I can...
|
by: Max58kl |
last post by:
Trying to access data and print it to the screen using Perl Builders I/O Window
--------------------------------------------------------------------------------
Hi
I am using a program called...
|
by: bdy120602 |
last post by:
Is it possible, when a user or viewer of your Web page, prints or
takes a screen shot of a Web page with mousover (roll-over) text in
it, to have that text printed or captures as part of the screen...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |