473,799 Members | 3,033 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Screen vs. print

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
Jul 20 '05 #1
12 2474
Wes Groleau gr**********@fr eeshell.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"
Jul 20 '05 #2
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
Jul 20 '05 #3
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/
Jul 20 '05 #4
Wes Groleau <gr**********@f reeshell.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
Jul 20 '05 #5
On Tue, 28 Sep 2004 00:18:13 -0500, Wes Groleau
<gr**********@f reeshell.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.
Jul 20 '05 #6
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
Jul 20 '05 #7
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/
Jul 20 '05 #8
Wes Groleau <gr**********@f reeshell.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****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

"Prediction s are difficult, especially about the future." - Casey Stengel
Jul 20 '05 #9
Wes Groleau gr**********@fr eeshell.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"
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2404
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 entire line from the file , headers as well > > >as just the desired body messages . > > > > > >fp = file("/home/chuck/pythonScript/testbox") > > >mb = mailbox.UnixMailbox(fp, > > >email.message_from_file)
16
4214
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 sheets? I am not clear how the user would select the different .css files? Seems to be easier than having duplicate html files ...
48
8714
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 The ScreenplayCSS is flawed, for several reasons; -overuse of <div id= tags -doesn't scale screen resolutions (convert from px to in, pt ?) -no media="print" (how much coule be shared between "screen" & "print") -no automatic page breaks (with...
18
6362
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 repeating side tiles. I would like the on-screen display to use low-res versions (96 dpi) of the images, to ensure fast loading. But I would like the printed version to use high-res versions (300 dpi or more). The printed page should be...
5
2615
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 sys.stdout = self
2
9980
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 printer settings to print. I wanted the print preview to appear the same for all users (i.e. a default page size of 8.5x14 (legal) and portrait mode). Many users have different printers as their default (plotters etc..) and I found that various...
1
1732
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; visibility: hidden; }
4
29675
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 disable it from doing this, like redirect the output to somewhere else? But later on in the program i then need to print other stuff so i'd need to re-enable printing too. Any ideas?
3
2344
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 Perl Builder which is an Integrated Development Environment for Perl scripting. I am trying to access the data in a txt file and then print the results to the screen. The procedure for doing this is write a script then click on the Run button,...
5
3448
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 shot? If so, how? Thanks,
0
9688
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10490
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10259
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10030
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5589
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4145
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.