The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> CSS Print - Content and Footer overlap
CharlesEF
post Mar 21 2018, 04:05 PM
Post #1


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



Hi All,

I have made a sample page for another post I made on MSDN. Seems IE and Edge will only print 1 page when they should print 2 pages.

The sample page has the footer hidden. What I have tried to do is move the bottom of the content up the page so I can show the footer. The header section is red, the menu section is yellow, the content section has no background color (white) and the footer section is blue. When you print preview you might not see the colors, unless you have background colors enabled. The best solution would be to make the footer print at the very end (in other words print footer on page 2) but my research suggests that can't be done. Even the CSS @page footer will not work in my case. The sample page is here.

If anyone has an idea of the IE and Edge printing problem please post here also.

Also, if anyone with different browsers can test the page to make sure they see 2 pages that would be great. Please report any browsers that don't show 2 pages.



Thanks for any and all help,

Charles
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
CharlesEF
post Mar 21 2018, 08:39 PM
Post #2


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



The problem is trying to figure out the bottom margin of the content section. I tried using CSS 'bottom' and 'height' but no value I tried in 'bottom' made a difference. The only value that made a difference (but causes a side effect) for 'height' was 100% but that only affected IE and Edge, they both now print 2 pages. The side effect is that all single page forms now print with a blank 2nd page. So, I may be stuck leaving the footer hidden.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 22 2018, 02:16 AM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Make #content position: static in the print style sheet.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 02:39 PM