Title: print css issue
Last modified: August 23, 2018

---

# print css issue

 *  Resolved [lunaz](https://wordpress.org/support/users/lunaz/)
 * (@lunaz)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/print-css-issue-2/)
 * I’m doing the [@media](https://wordpress.org/support/users/media/) print section
   of my style.css & can’t get the site content to take up the whole page! I tried
   copying things from the 2014 theme & still have the same problem 🙁 I have header
   sidebar/widgets & footers OFF & same w/ the entrey/page meta in the posts:
 *     ```
       @media print {
       .site,
       .site-header,
       .hentry,
       .site-content .entry-header,
       .site-content .entry-content,
       .site-content .entry-summary,
       .site-content .entry-meta,
       .page-content,
       .archive-header,
       .page-header,
       .contributor-info,
       .comments-area,
       .attachment .entry-attachment .attachment {
       		max-width: 100% !important;
       	}
   
       #site-header img,
       .search-toggle,
       .site-navigation,
       .site-content nav,
       .edit-link,
       .page-links,
       .widget-area,
       .more-link,
       .post-format-archive-link,
       .comment-respond,
       .comment-list .reply,
       .comment-reply-login,
       #secondary,
       .site-footer,
       .slider-control-paging,
       .slider-direction-nav,
       button,
       input,
       optgroup,
       select,
       textarea {
       		display: none !important;
       	}
   
       body,h1,h2,h3,h4,h5,h6,a,p,span {
       		background: #fff !important;
       		color: #000 !important;
       	}
   
       img {
       		border: 0 !important;
       	}
       }
       ```
   
    -  This topic was modified 7 years, 8 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fprint-css-issue-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 8 months ago](https://wordpress.org/support/topic/print-css-issue-2/#post-10619227)
 * Without a link to a visible site, it’s next to impossible to offer meaningful
   advice.
 *  Thread Starter [lunaz](https://wordpress.org/support/users/lunaz/)
 * (@lunaz)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/print-css-issue-2/#post-10630741)
 * oops, it’s uploaded to [http://www.lunaz.com](http://www.lunaz.com)
    warning!
   still looks crappy, not done yet lol
 *  Thread Starter [lunaz](https://wordpress.org/support/users/lunaz/)
 * (@lunaz)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/print-css-issue-2/#post-10642457)
 * FIXED IT!! i used the example at:
 * [https://codex.wordpress.org/Styling_for_Print#Print_Style_Example](https://codex.wordpress.org/Styling_for_Print#Print_Style_Example)
 * then finally found the class to set the margins to 0 on small screens or printers.
   that gets rid of that 25% on the right from before
 *     ```
       .site-main {
   
       	margin: 0;
   
       }
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘print css issue’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [lunaz](https://wordpress.org/support/users/lunaz/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/print-css-issue-2/#post-10642457)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
