Jump to content
  • Advertisement
Sign in to follow this  
Zul

[web] CSS Printing error

This topic is 5055 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've got a big ole page of data in a table, and I'm displaying the column names vertically to save space since the data is all single digit numbers. I'm using writing-mode: tb-rl; and filter: flipv and fliph; to do the vertical text. This looks dandy on the screen, but when I go to print, the filters don't appear to be applied. What gives? Is there a way around this? I've seen many mentions of this problem through other forum searches and googling, but no one seems to have solved it. Any web gurus around that can help me out? I'm using IE 6, and I do realize that this probably won't work on any other browsers, but I don't care.

Share this post


Link to post
Share on other sites
Advertisement
How is your DOCTYPE set up? IE can be perculiar if it's not set up how it wants it, rendering CSS in it's own quirky way. How does the page look in Print Preview?

Share this post


Link to post
Share on other sites
woohoo, replies!

Doctype looks like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

The funny thing is, I talked to other people who've had similar problems with printing and CSS. One solution I was told is to use the CSS on the original page which makes the data appear correct, and then when the user wants to print the page, you link to a second page for printing which doesn't look right but prints correctly.

So right now, I only do
writing-mode: tb-rl;
and filter: fliph

The vertical texts are backwards on the screen, but print correctly. I can use this for my printing page, and use filter: fliph flipv for the presentation page.

It's not the ideal solution if you ask me, but I think it will work.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!