SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist
    Join Date
    May 2005
    Location
    Houston, Texas, USA
    Posts
    418
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can't get overflow in scrollbox to print

    I have a scrollbox and need to use the print button to print the whole text. At first glance this looked simple, but it is now clearly time to consult the professionals...


    Here is "print.css":

    /* CSS Document */
    body {
    visibility:visible;
    overflow: auto;
    }
    .print {visibility:visible;}



    Here is my link to the style sheet in the HEAD tag

    <link rel="stylesheet" href="print.css" type="text/css" media="print" />



    Here is the button:


    <form>
    <input type="button" value=" Print this page "
    onclick="window.print();return false;" />
    </form>
    Opportunity favors the prepared mind.

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,107
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    Does File > Print work?

  3. #3
    SitePoint Evangelist
    Join Date
    May 2005
    Location
    Houston, Texas, USA
    Posts
    418
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, but someone did fix it for me.
    Opportunity favors the prepared mind.

  4. #4
    SitePoint Addict
    Join Date
    Apr 2007
    Location
    Phoenix, AZ
    Posts
    230
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So, if you don't mind me asking, what was the fix?
    Joe

  5. #5
    SitePoint Evangelist
    Join Date
    May 2005
    Location
    Houston, Texas, USA
    Posts
    418
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Of course, in the css-
    #content{overflow: visible;}
    Opportunity favors the prepared mind.


Bookmarks

Posting Permissions

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