Forum Moderators: not2easy
I have taken over administering a website for a religious community and have modified the existing CSS file to include an @media print { } section that turns off all graphics and sidebars and just prints out black text on a white background within a 50 pixel margin on all sides.
doctype = XHTML 1.0 Transitional
problem:
Everything print previews fine and prints fine under Firefox 2.0.0.14 but under IE7, the second page of ANY printout or print preview from ANY webpage on that site has a huge left margin taking up a good 3/4 of the printed page. I did not write the initial stylesheet, I simply took the initial stylesheet, placed it inside the @media print { } statement, and did my modifications from there.
I must admit that I am a bit over my head with this, so I would appreciate any feedback
and scary monsters ..., you called ;)
Ok here's a couple guesses in the absence of some code to test,
1, the support of @media {} was never that good, I don't actually know the state of play with IE7 as I still use a separate print stylesheet call.. try that
i.e. make your main sheet <link rel {href..etc} media="screen, projection"> or <style type {etc} media="screen, projection">@import
then do another the same again only change the media to print and call a separate sheet using your print prefs in it..
this will mean a blank slate for the print sheet so it should need less overrides
does that help?
2. the step above might actually negate the need for this step depending on what your original "media" call was
still using your @media print {print rules} in the main sheet, make sure the media of the master sheet is "all" then, make sure there is no positioning, or floating remaining in the print part of your rules on the content you want displayed - e.g. if you're using
display: none; on your sidebars and they're floated, there should be no need to still float the center content.. (if you're not using display: none; for the content you want hiding, that could also be part of the issue) failing all that can either of you give some example code where it happens {we can fill up with foo text) but would need the Doctype and page skeleton
-Suzy
PS: Welcome to WebmasterWorld, Br_Url,
.. now back to my cave
Marshall
You guys have given me some ideas that I can pursue and I will see what I can come up with. and thanks also for the welcomd.