Remove Space when printing webpage - Setup in Print.css

I am trying to customize a print layout from a wordpress website so that a user can print the content in a convenient layout.  I've got most of the page working the way I'd like but can't figure out a final piece.  It is a margin space between the header and content area of the page.

The site utilized Bootstrap for mobile responsiveness so I'm not sure if that's causing some of the issue, but here is a link to a sample page.

If you click the "print this information" button, you can see in the print preview how there is a gap of white space between the top logo and the content below.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

axessJoshAuthor Commented:
This may be specific to Chrome print preview.
Hi you can use Bootstrap helper

Just add this class to your div if you want to hide it from print

Open in new window

this div seems to be the culprit
<div class="no-header-image __web-inspector-hide-shortcut__"></div>

Open in new window

refer to this CSS
.fw-absolute-header section.password-protected-section, .fw-absolute-header .no-header-image {
    padding-top: 125px;

Open in new window

or you can create a specific CSS file and add specific size, width color anything... for printing only.

the link should have media="print"
<!-- print -->
 <link href="css/print.css" rel="stylesheet" type="text/css" media="print"/>

Open in new window

Create a file print.css and place it in the css folder.


everything need to be place between

 @media print { 

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.