Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2003
    Posts
    601
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Print Stylesheet Question

    Hey All,

    I've got the following code in my HTML page:

    <div id="printOnly"><img src="../images/image.jpg" alt="" /></div>

    Here is the default stylesheet:

    #printOnly {
    display: none;
    }

    So it doesn't display on the screen. And here is the print stylesheet:

    #printOnly {
    border: 1px solid #ffcc00;
    }

    The problem is .. It doesn't show the image when printing. Any idea what I'm doing wrong?

    Thanks.

  • #2
    Regular Coder
    Join Date
    Jul 2003
    Posts
    601
    Thanks
    17
    Thanked 0 Times in 0 Posts
    Fixed it.

    display: inline;

    .. in the print stylesheet.

    Thanks.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •