WordPress.org

Forums

Print CSS Issue! (5 posts)

  1. twilitegxa
    Member
    Posted 3 years ago #

    Is there a way someone can tell me to edit my CSS for printing in order to set it up so that when a user prints one of the pages at this url: http://webdesignsbyliz.com/joeytamer

    that it prints the page as they see it (some pages have a sidebar, but it prints on a separate page with the rest of the page printing as a full width page). I'd like to know if we can have it print all to the same page, as it appears on the browser. An example of a page with a sidebar is the blog page: http://webdesignsbyliz.com/joeytamer/blog

    Please can anyone help me? I am so confused when it comes to the print css :-(

  2. Brett
    Member
    Posted 3 years ago #

    You will need to setup a print.css file that declares what items to show and how. To hide any specific object you could put:

    #sidebar { display:none; }

    Make sense?

  3. twilitegxa
    Member
    Posted 3 years ago #

    Yes. I think it already includes a print section on my css, but like I said, it is printing the sidebar, although it's printing on a separate page. Below is my section on print in my regular css file:

    [CSS moderated as per the Forum Rules. Please just post a link to your site.]

  4. Brett
    Member
    Posted 3 years ago #

    Hide #seconday. That will hide the sidebar.

  5. twilitegxa
    Member
    Posted 3 years ago #

    Is there a way to make it print on the same page rather than having it print to the next page? I'm not sure why, but a client of mine wants to sidebar actually printed, and they want it on the same page :-/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.