{"id":83,"date":"2010-10-30T16:16:49","date_gmt":"2010-10-30T16:16:49","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=83"},"modified":"2012-09-08T16:20:11","modified_gmt":"2012-09-08T16:20:11","slug":"css-for-printing","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=83","title":{"rendered":"CSS for printing"},"content":{"rendered":"<p>One of our clients wants their website to print out on paper the way it looks on screen.  I need to develop custom css for printing.<\/p>\n<p>So after my main css is called, I add the call to the conditional css file like this:<br \/>\n<code>link rel=\"stylesheet\" href=\"_print_style.css\"  type=\"text\/css\" media=\"print\"<\/code><\/p>\n<p>then in the _print_style.css file, I hid certain elements that shouldn&#8217;t print, such as the navigational menu boxes with<br \/>\n<code>.sbox {display:none;}<\/code><\/p>\n<p>A big issue I found was that floating div&#8217;s do not print across pages; To fix this issue, I added entries for each floating div to my _print_style.css file like this:<br \/>\n<code>#bbox {width:780px;float:none;}<\/code><\/p>\n<p>A few other tweaks here and there, now all the information shows up nicely on the printed page without needing a special &#8220;printable version&#8221; of the webpage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of our clients wants their website to print out on paper the way it looks on screen. I need to develop custom css for printing. So after my main css is called, I add the call to the conditional &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=83\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/83"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=83"}],"version-history":[{"count":11,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":697,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/83\/revisions\/697"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}