Printer friendly CSS only prints one page

  • Author
    Posts
  • #127751

    guila
    Member

    I found this CSS which creates printer friendly pages, but it only prints the first page of a blog post and we have many that are long and need printing. I’m not enough of a CSS expert to be able to debug it. Help?

    @media print {
    div#wrapper {
    width:100%;
    }

    div#wrapper * {
    width:auto;
    }

    div#header {
    display:none !important;
    margin:0;
    padding:0;
    }

    div#footer {
    display:none !important;
    margin:0;
    padding:0;
    }

    div.sidebar {
    display:none !important;
    margin:0;
    padding:0;
    }

    div.container {
    margin:0;
    padding:0;
    }

    .navigation {
    display:none;
    }

    #blog-title {
    display:none;
    }

    .comments {
    display:none;
    }

    Thanks!

    #128133

    cornell
    Member

    Guila

    You’re gonna have to help me out a little here I’m afraid.

    There’s no reference to wordpress.com in your main site although there are some urls in the source of the page. Is the whole site hosted at wordpress.com, just a blog or are you linking from the main site to the .com blog?

    Where are you trying to use this CSS? Within the .com blog or the main site?

    If you can answer these questions then we can see if we can help you. Thanks!

    #128137

    timethief
    Member

    It seems to me, although i could be wrong, that this bloggers blog at http://guila.wordpress.com may be set up for the purpose of driving traffic to the commercial site currently linked to the wordpress.com username which is http://www.guilamuir.com/
    The wordpress.com ToS section 2, bullet 5 dis-allows this. http://wordpress.com/tos/

    #128138

    cornell
    Member

    Absolutely, I wasn’t going there just yet though! ;)

    #128145

    timethief
    Member

    Coward … {snicker}

    #128151

    guila
    Member

    Sorry. The blog is at http://guila.wordpress.com. I write regular articles and had been posting them on my main site, but it was always pretty involved to post the article, the printer-friendly version of the article, update the links in the menu, update the RSS file, etc. I felt that using a blog as a library for the articles was a good solution that automated much of what was being done manually. Is there some kind of problem with this?

    #128153

    cornell
    Member

    That, unfortunately you will have to ask the site administrators. We can’t make policy or judgement calls in the forum.

    #128163

    raincoaster
    Member

    If the posts on the blog are just a duplicate of posts from elsewhere, staff has requested that you make the WordPress.com blog private. This ultimately helps your main site, because this way the WP.com blog cannot outrank it on search engines and thus take readers away from it.

    #128172

    timethief
    Member

    Well said raincoaster. Thanks for sharing these insights in a way we can all understand. :)

    #128189

    raincoaster
    Member

    You’re welcome. As you know, I’m the queen of post pimping.

    #128230

    trent
    Member

    The blog is private now.

    Trent

The topic ‘Printer friendly CSS only prints one page’ is closed to new replies.