Here's a solution for you, but I don't know its applicability to Firefox, and won't work for inline styling.
1. Start by outputting the information in a text area and in a div/span. 2. Give each different class names/ids, say foo and bar respectivly. 3. Link to your stylesheet or declare your style section defining all your styles EXCEPT for foo and bar. 4. Define two more stylesheets or style sections. 5. In one use the attribute media="screen" and within the section do foo { display: inline;} bar{display: none;} 6. In the second one do the same thing but reverse the display properties. Mariano