www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > CSS

    CSS Discussion and technical support relating to Cascading Style Sheets.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 06-08-2007, 08:59 AM
    rolmes rolmes is offline
    Registered User
     
    Join Date: Jun 2007
    Posts: 5
    resolved [RESOLVED] CSS Print Style Error - first page printed only

    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.
    Reply With Quote
      #2  
    Old 06-08-2007, 10:27 AM
    rolmes rolmes is offline
    Registered User
     
    Join Date: Jun 2007
    Posts: 5
    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.
    Reply With Quote
      #3  
    Old 06-08-2007, 01:38 PM
    ray326's Avatar
    ray326 ray326 is offline
    Got Link?
     
    Join Date: Nov 2003
    Location: Jerryville, Tejas
    Posts: 11,741
    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
    Reply With Quote
      #4  
    Old 06-13-2007, 03:27 PM
    MaryEllen MaryEllen is offline
    Registered User
     
    Join Date: Jul 2006
    Location: Northeast Pennsylvania, USA
    Posts: 2
    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
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 03:07 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.