Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

No text appearing in print preview

  • 11-09-2007 03: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, Registered Users 2 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, Registered Users 2 Posts: 21,278 ✭✭✭✭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, Registered Users 2 Posts: 68,173 ✭✭✭✭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, Registered Users 2 Posts: 21,278 ✭✭✭✭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