| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) | |
|
div
|
print css help
Basically I've got a print.css stylesheet that I'm linking to via @import command. The problem is that, in ie5 and 5.5 for some reason they use the print stylesheet as the main stylesheet for the page, even though it contains the media="print" command. This obviously messes the whole layout as in the print stylesheet I'm hding a lot of the #divs which I dont want to be printed. As usual it all works fine in ie6,mozilla etc. A google shows other people have had the same problem, but I cant find a bloody solution! Can anyone help? the css.. Quote:
|
|
|
|
|
|
|
#2 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,200
|
dunno if this will made a difference but try Code:
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
|
#5 (permalink) | |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,200
|
Quote:
I might be talking shit though. That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
|
|
#7 (permalink) |
|
trouble free and loverlee
Join Date: Mar 2003
Location: YooKay
Posts: 2,933
|
I'm always confused where folk keep getting the idea to use <link> tags with media attributes. I know it's valid, but it's not a method I've seen being pimped anywhere. Is it the preferred MO of one or other of those iffy wsyiwyg packages? @import, baby. End of. |
|
|
|
#8 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,200
|
I dunno bill. http://www.alistapart.com http://www.stopdesign.com http://www.meyerweb.com/ all seem to be using one or other of those iffy wsyiwyg packages. That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
|
#9 (permalink) |
|
div
|
I agree Bill, but like i just said, If i used import to link to the print css as well as main main css, it was overriding my main css selectors, and borking the page up. The only solution seems to be using @import for my main css file, and <link> for the print one to overcome what is basically and ie5.0 and 5.5 glitch... |
|
![]() |