Web Analytics Made Easy -
StatCounter Creating a printable two-column website - CodingForum


No announcement yet.

Creating a printable two-column website

  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating a printable two-column website

    I'm using the css screen media and the css print media to create two different versions of my website. I have a div that is visible to the screen but invisible when you print, and another div that is visible when you print but invisible on the screen.

    Both of these divs contain the exact same content, but the print version is organized into two columns of text and the screen version is just one column.

    So when the website prints out on paper it is in two columns.

    But you can't do this just by creating a two-celled table for the left and right columns. Otherwise, when you print out the document you would have to read all the way down the left side of the document, then go back to page 1 and read all the way down the right side of the document.

    You need to have a left and right column for each page, which matches the height of the page, so that bits of the previous or following pages don't show up on the current page. And because each browser has slightly different default margins, you can't make one that will print properly in all browsers.

    Unless there's a way that you can. Is there any special coding trick that will let me do this?
    Last edited by bonecone; Sep 2, 2011, 10:20 AM. Reason: explain more clearly

  • #3
    Thanks! It only works in Firefox though. Guess I'll have to wait until the standard is supported in all browsers