From: Ed Mullen on
I have very little hair and I cannot afford to pull any more out so I'd
appreciate any insight anyone can give on this one.

On all my pages I include a style sheet for printing. Basically all it
does is omit the nav buttons and adjust the margins.

When I implemented it (ages ago) I tested it on a couple of pages.

Today I noticed that it's not working on some pages.

Go to http://edmullen.net/index.php and do a print preview. the nav
buttons at the top should not be visible.

Then go to http://edmullen.net/abington/ahs68_main.php or any other page
on the "Abington" menu. No nav buttons in print preview.

Now go to any page on the "Mozilla" "General" or "Music" menus and print
preview. The nav buttons are visible as though the print.css sheet is
being ignored. However! If I view page info in SeaMonkey or Firefox
the print.css sheet IS linked in.

I've tried comparing the links in the pages and can't see any real
difference.

I've tried copying and pasting the link lines from a working page to a
non-working page to no avail.

I've tried moving a working page into a directory that contains
non-working pages to no avail.

I'm obviously missing something ... umm ... obvious.

http://edmullen.net/styles/default.css
http://edmullen.net/styles/print.css

I've tested this on:

SeaMonkey
Firefox
Opera
IE8
Safari

Please, either help me figure this out or buy stock in Jim Beam. I
foresee a bump up in their market price.

--
Ed Mullen
http://edmullen.net
Home computers are being called upon to perform many new functions,
including the consumption of homework formerly eaten by the dog. - Doug
Larson
From: dorayme on
In article <3h4o56.23v.19.1(a)news.alt.net>,
Ed Mullen <ed(a)edmullen.net> wrote:

> On all my pages I include a style sheet for printing. Basically all it
> does is omit the nav buttons and adjust the margins.

How about a cut down version of the essentials that validates
completely? Can you strip as much as possible out of the problem
pages, including the CSS. Stuff like just

<div id="doc_header">
<ul>
<li>item</li>
<ul>
</div>

and have no css except the print one with just

#doc_header {display: none;}

or more that displays the problem?

--
dorayme
From: Steven Simpson on
On 14/02/10 05:44, Ed Mullen wrote:
> Go to http://edmullen.net/index.php and do a print preview. the nav
> buttons at the top should not be visible.
>
> Then go to http://edmullen.net/abington/ahs68_main.php or any other
> page on the "Abington" menu. No nav buttons in print preview.
>
> Now go to any page on the "Mozilla" "General" or "Music" menus and
> print preview. The nav buttons are visible as though the print.css
> sheet is being ignored. However! If I view page info in SeaMonkey or
> Firefox the print.css sheet IS linked in.
>
> I've tried comparing the links in the pages and can't see any real
> difference.
>

I removed the title="Print Preview" from the <link> on the
moz_combine.php page, and the nav buttons then didn't show on print
preview. Drop the titles; do you really need them in this case?

Not sure why the index page should work even though it has a title
attribute. It's a different value though, "Print Style"; change it to
"Print Preview" and it fails.

(FF3.6)

--
ss at comp dot lancs dot ac dot uk

From: Ed Mullen on
Steven Simpson wrote:
> On 14/02/10 05:44, Ed Mullen wrote:
>> Go to http://edmullen.net/index.php and do a print preview. the nav
>> buttons at the top should not be visible.
>>
>> Then go to http://edmullen.net/abington/ahs68_main.php or any other
>> page on the "Abington" menu. No nav buttons in print preview.
>>
>> Now go to any page on the "Mozilla" "General" or "Music" menus and
>> print preview. The nav buttons are visible as though the print.css
>> sheet is being ignored. However! If I view page info in SeaMonkey or
>> Firefox the print.css sheet IS linked in.
>>
>> I've tried comparing the links in the pages and can't see any real
>> difference.
>>
>
> I removed the title="Print Preview" from the<link> on the
> moz_combine.php page, and the nav buttons then didn't show on print
> preview. Drop the titles; do you really need them in this case?
>
> Not sure why the index page should work even though it has a title
> attribute. It's a different value though, "Print Style"; change it to
> "Print Preview" and it fails.
>
> (FF3.6)


Steven, that's great! Thanks so much.

Of course, that makes me wonder why that was a problem. Rather weird, eh?

Thanks again.

--
Ed Mullen
http://edmullen.net
Just for today, I will not sit in my living room all day in my
underwear. Instead, I will move my computer into the bedroom.