|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
@media print
I am using @media print to weed out stuff I don't want printed. It works fine for that, but I can not get the page to print preview past 1 page. Any suggestions?
|
|
#2
|
||||
|
||||
|
print CSS
AFAIK other than using print sizes and dimensions (eg. em instead of px) there is no "magic" needed to get more than 1 page as long as the amount of content needs more than 1 page (although there is a way to "page break"). It sounds like your problem may have more to do with your browser settings.
|
|
#3
|
|||
|
|||
|
Thanks for the help.
|
|
#4
|
|||
|
|||
|
If I take all of my <div> tags out it works fine. Onec I put any backl in it fails. I have tried one tag at a time to try to isolate, but it seems like any make it fail
|
|
#5
|
|||
|
|||
|
I ran it in Firefox and disabled the embedded css, and other than formating strangely, it all came out on 2 pages on the print preview. Getting closer
|
|
#6
|
|||
|
|||
|
The problem is one of these 2 divisions in the css:
Code:
#container
{
height: 94%;
width: 99.3%;
position: absolute;
top: 0em;
left: 0em;
background:url(/FUSC/images/soccer_bg02.gif);
background-position: bottom ;
}
and Code:
#scroll {
background:url(/FUSC/images/fusc_new.gif);
background-repeat: no-repeat;
background-position: 50% 110%;
background-attachment: fixed;
float: left;
width: 100%;
height: 86%;
overflow: auto;
text-align:center;
}
in a print.css I've tried making float:none; and position: static for the respective division, and also height and width : auto. I need some advice. Thx |
|
#7
|
|||
|
|||
|
for anyone who may run into it, In # scroll it was the :
overflow: auto IN the print.css I changed to overflow: visible in # scroll |
|
#8
|
||||
|
||||
|
overflow
I'm glad you figured it out. I would never have guessed that overflow: auto would cause a problem with the print view. It does kind of make sense though in hindsight. The default is "visible", and "auto" creates scrollbars when needed. Scrollbars wouldn't be useful to a printed page.
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Advanced Web Development > @media print |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|