473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Printer Friendly in IE6 ot So Friendly in Firefox

I committed the cardinal sin of using tables and am now paying the price.

Actually I didn't design my webpages with tables - did it with CSS (i.e. table-less) but the info for users was best presented with tables (at least the Vet I'm working with gave me the info in tables).

I created a style sheet for printing (media="print") and linked it in having defined several rules to make the printout from IE6 look good. To get the text and table to be in the right places, I had to make several left-margins large negative numbers (like -36 and -300) because the text and table were 'shoved' to the right. Output looks good in IE6 but when I print (preview) it in FF, everything is moved to the left (duh - just like I told it).

Is there something special I should be doing for IE6 (or FF ... though I suspect FF is in the right and IE is not rendering the code correctly)?

The page is at: www.dvmvac.com/REDESIGNnew/CVTypes.shtml
and the print CSS is: www.dvmvac.com/REDESIGNnew/DVMprintCSS.css
(both the html and CSS validate via web Developer (with W2C)).
Sep 2 '07 #1
8 2248
drhowarddrfine
7,435 Expert 4TB
Is there something special I should be doing for IE6 (or FF ... though I suspect FF is in the right and IE is not rendering the code correctly)?
In 99% of all cases, this is true. IE should never, ever be used as a reference for how things work or a design tool.
in FF, everything is moved to the left (duh - just like I told it).
So let's not try to fix FF when it is IE that is not performing correctly.
with W2C
It's the W3C, not W2C.

In spite of my ranting above, I have not done much with css print stuff so I can't help right now.
Sep 2 '07 #2
In 99% of all cases, this is true. IE should never, ever be used as a reference for how things work or a design tool.
So let's not try to fix FF when it is IE that is not performing correctly.
It's the W3C, not W2C.

In spite of my ranting above, I have not done much with css print stuff so I can't help right now.
W3C - I stand corrected (fat fingers) ... at least you know what I meant.

Glad I didn't use IE for testing of initial website !!

Unfortunately, 77.4% of the DVM's referring to this website use IE6 or IE7 so it has to work for them. Also, printing from FF was not a problem .. thus the initial reliance on IE for printer friendly.
Sep 2 '07 #3
drhowarddrfine
7,435 Expert 4TB
Unfortunately, 77.4% of the DVM's referring to this website use IE6 or IE7 so it has to work for them.
It doesn't matter. Writing markup for a buggy browser produces buggy markup. Write to the standard and test in a modern standards compliant browser produces proper markup that works everywhere, except where IE screws up. But IEs quirks and bugs are known, as well as the fixes.
Sep 2 '07 #4
It doesn't matter. Writing markup for a buggy browser produces buggy markup. Write to the standard and test in a modern standards compliant browser produces proper markup that works everywhere, except where IE screws up. But IEs quirks and bugs are known, as well as the fixes.
OK, will throw out the markup I have but not sure how to proceed now. Seems like whatever I do to make IE browsers won't work in FF or Opera or Safari.
Sep 2 '07 #5
drhowarddrfine
7,435 Expert 4TB
No, no! I'm not saying that at all. I'm saying your markup is probably written correctly but you are looking at buggy IE and saying why isn't it working in firefox when you know your markup is doing exactly what you wrote, but not what you want.

Change the markup to what you want it to do in FF, then find out why IE is screwing it up! If your 1997 Ford doesn't work like your 2007 Porsche, you don't start tinkering with the Porsche.
Sep 2 '07 #6
Change the markup to what you want it to do in FF, then find out why IE is screwing it up! If your 1997 Ford doesn't work like your 2007 Porsche, you don't start tinkering with the Porsche.
Understand ... problem is there is very little to do for FF to print the way I want (maybe a few - display:none; - rule changes) . By telling FF to set the scale at 75%, the pages print the way they are written. Does that mean by redefining my #wrapper to 768 (1024 * .75 = 768) the output will be ok in IE ... I'll try it, so don't bother to answer unless I'm way off base and I need to be pointed in the right direction.
Sep 2 '07 #7
I'll try it
Almost worked ... needs a little tweaking but think I'm on the right track

Thanks for everyone's feedback
.
Sep 2 '07 #8
I committed the cardinal sin of using tables and am now paying the price.

Actually I didn't design my webpages with tables - did it with CSS (i.e. table-less) but the info for users was best presented with tables (at least the Vet I'm working with gave me the info in tables).

I created a style sheet for printing (media="print") and linked it in having defined several rules to make the printout from IE6 look good. To get the text and table to be in the right places, I had to make several left-margins large negative numbers (like -36 and -300) because the text and table were 'shoved' to the right. Output looks good in IE6 but when I print (preview) it in FF, everything is moved to the left (duh - just like I told it).

Is there something special I should be doing for IE6 (or FF ... though I suspect FF is in the right and IE is not rendering the code correctly)?

The page is at: www.dvmvac.com/REDESIGNnew/CVTypes.shtml
and the print CSS is: www.dvmvac.com/REDESIGNnew/DVMprintCSS.css
(both the html and CSS validate via web Developer (with W2C)).


pls give the <br> tag infront of the types of vaccines
Sep 4 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: tommy | last post by:
Newbie to the group.....hope you guys can help. I need to be able to have a button at the bottom of a form page (like the submit & reset buttons) to provide the user with a printer friendly...
4
by: ST | last post by:
Hi, I'm implementing a printer friendly feature for all the pages on a web site. I'm separating the header, content, and footer into separate ascx files, which are contained in the main file. ...
1
by: John Klucker | last post by:
Can anyone tell what easiest way to implement 'Printer Friendly' functionality to my .aspx page. Are there any controls available or is there something in the framework? Thanks in Advance!! ...
2
by: Ron | last post by:
Hello, I am working on a registration application for my companies intranet. The intranet is ASP classic based as of now. Unfortunately I only know ASP.NET. But that was all okay until I decided I...
2
by: Sandy | last post by:
Hello - I tried to google this, but got back every page on the whole entire web that has printer friendly versions . . . I have a panel containing text from a repeater that also contains text...
1
by: dinoo | last post by:
Can any one help me out? I am looking out to implement printer friendly version of a web page. I do not want the header and footer show up in the print and I do not want to use frames (it is a...
2
by: weetat.yeo | last post by:
Hi all , I have a print button in PHP page which using javascript window.print() to print web page. However , when user click "print" , the print preview display that the page cut-off and...
5
by: weetat.yeo | last post by:
Hi all , I have php page which the data in the page are extracted from MYSQL database. The data are retrieved when user click submit button . In the php page , there is a print button for user...
1
by: tbanov | last post by:
Hi, I'm looking to create my own version of a printer-friendly page. Any resources I can find on this subject are extremely specific about what they consider "printer-friendly", and they don't...
15
by: Prisoner at War | last post by:
Okay, I'd like to create a print-friendly website, so I've been reading up on how to create print-friendly pages (without duplicating my site, of course, by having separate versions of each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
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,...
0
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,...
0
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...
0
agi2029
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,...

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.