|
|||||||
| CSS Discussion and technical support relating to Cascading Style Sheets. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello to all, I hope someone can help (well, I wouldn't be posting if this weren't the case) ...
I have created a Print Style Sheet for a XHTML page containing a Form and when viewed in Opera (File > Print Preview) the page is spread over 3 pages, it is formatted correctly, and all info is present - fine. But when I go to File > Print Preview in other browsers (IE, Netscape, FF, etc.) the web page does not extend past the first page, and so, only one third of the content is visible. And this is still the case when I print the page. Why aren't these browsers displaying the XHTML code in the way specified in the Print Style Sheet? Does the presence of the Form have anything to do with this error? Thanks in advance. ray. |
|
#2
|
|||
|
|||
|
just had a look around the web and managed to find the answer...
...the main content of the page is surrounded by a Div tag, which has the position property set to absolute, and this was causing the problem. This has been changed (in print style sheet) to static, and now the page prints and views in print preview fine. |
|
#3
|
||||
|
||||
|
Thanks for returning with the solution.
__________________
Help Save Ana Why use Web Standards: Zeldman How (new): Castro How (experienced): Cederholm If you can only get one book and you're already HTML savvy then this is it: stylin' with CSS: A Designer's Guide Charles Wyke-Smith New Riders "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan |
|
#4
|
|||
|
|||
|
I have to add on to this because I was having the same problem, found this thread and thought, "AHA". well here's another simple thing, perhaps more experienced folks will know this
Mozilla/Firefox users: If you are specifiying a media type for your print style sheet, be sure to also add Media="screen" for your screen sheet . . . it only took me about 2 hours to figure out that gem. Mary Ellen |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|