Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

No text appearing in print preview

Options
  • 11-09-2007 3:29pm
    #1
    Closed Accounts Posts: 2,616 ✭✭✭


    I have developed a web application, but when i go to print preview, only the style sheet appears, and the rest is blank. any ideas?


Comments

  • Registered Users Posts: 1,629 ✭✭✭NullZer0


    I have developed a web application, but when i go to print preview, only the style sheet appears, and the rest is blank. any ideas?


    What kind of web application?


  • Closed Accounts Posts: 2,616 ✭✭✭8k2q1gfcz9s5d4


    its just pulling data back from a database and displaying it on lables on the screan. none of the text or controls that are not on the style sheet do not appear in the print preview


  • Registered Users Posts: 21,257 ✭✭✭✭Eoin


    Try a few test styles like this:

    [html]
    <style type="text/css" media="print">
    input
    {
    border-style: solid;
    border-width: 1px;
    border-color: black;
    }
    </style>
    [/html]


  • Registered Users Posts: 68,317 ✭✭✭✭seamus


    Are you declaring the "media" attribute in your link tag?


  • Closed Accounts Posts: 2,616 ✭✭✭8k2q1gfcz9s5d4


    seamus wrote:
    Are you declaring the "media" attribute in your link tag?

    no i didnt!
    changed the code to
    <style type="text/css" [b]media="screen"[/b] >
    
    now works!!


  • Advertisement
  • Registered Users Posts: 21,257 ✭✭✭✭Eoin


    no i didnt!
    changed the code to
    <style type="text/css" [b]media="screen"[/b] >
    
    now works!!

    media="print" should work, and then you can have two stylesheets - check my earlier response.


Advertisement