My problem is this, if I want to select print from the browser menu only the content visible on the screen prints. Any content which you would have to to scroll down to see is cut off.
I have created a print.css file with my other print settings to remove things like navigation elements and setting the color of the font and background to black and white respectively.
Expand|Select|Wrap|Line Numbers
- /* Remove unwanted elements */
- #header, #nav, .noprint
- {
- display: none;
- }
- /* Ensure the content spans the full width */
- #container, #container2, #content
- {
- width: 100%; margin: 0; float: none;
- }
- /* Change text colour to black (useful for light text on a dark background) */
- .lighttext
- {
- color: #000
- }
- /* Improve colour contrast of links */
- a:link, a:visited
- {
- color: #781351
- }
- .printBody
- {
- color: #000000;
- background-color: #FFFFFF;
- }
Not too worried about page breaks for now, just want the content to come out.
The two side by side <div's> look like this:
Expand|Select|Wrap|Line Numbers
- <div id="LeftHalf" align="center">
- <table id="GeoTechTable" width="99%" align="center" border="1">
- <tbody id="GeoTechBody" align="center">
- <tr>
- <td class="MenuTitle" colspan="4">Geo Tech Lab Work</td>
- </tr>
- <tr>
- <td class="subHeading3">Job #</td>
- <td class="subHeading3">Boring</td>
- <td class="subHeading3">Container #</td>
- <td class="subHeading3">Lab Tech</td>
- </tr>
- </tbody>
- </table>
- </div>
- <div id="RightHalf" align="center">
- <table id="CMETable" width="99%" align="center" border="1">
- <tbody id="CMEBody" align="center">
- <tr>
- <td class="MenuTitle" colspan="4">CME Lab Work</td>
- </tr>
- <tr>
- <td class="subHeading3">Job#</td>
- <td class="subHeading3">Lot/Date</td>
- <td class="subHeading3">Container #</td>
- <td class="subHeading3">Lab Tech</td>
- </tr>
- </tbody>
- </table>
- </div>
Expand|Select|Wrap|Line Numbers
- #LeftHalf {
- position: absolute;
- white-space: nowrap;
- left: 0%;
- top: 25px;
- width: 47%;
- color: #333333;
- padding:5px;
- font-size: 10pt;
- overflow: hidden;
- z-index: 98;
- }
- #RightHalf {
- position: absolute;
- white-space: nowrap;
- left: 50%;
- top: 25px;
- width: 47%;
- color: #333333;
- padding:5px;
- font-size: 10pt;
- overflow: hidden;
- z-index: 98;
- }