Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Printable version background color
Author « Topic »  

jpkuhn
Starting Member

France
38 Posts

Pre-sales questions only
(More Details...)

Posted - 03/21/2018 :  11:21:38  
Hi,
I use a colored background in all my shop pages :
body {
height: 100%;
width: 100%;
font-family: 'Exo 2', sans-serif;
background: #566876
}
My problem is that I get the same colored background in the "printable version" of the receipt, in the thanks.php window.
Is it possible to change the background only in the print window?
Thanks

JPK

Sinbad
ECT Moderator

USA
65937 Posts

Posted - 03/21/2018 :  11:44:26  
Hi JPK, I came across this which sounds like what you want to do, you can try it just set the body background in the new style sheet to white.

body {
height: 100%;
width: 100%;
font-family: 'Exo 2', sans-serif;
background: #fff;
}
Upload the new .css to the server and add the link to the style sheet thanks page, just above the closing </head> tag

https://www.arclab.com/en/kb/htmlcss/how-to-print-a-specific-part-of-a-html-page-css-media-screen-print.html you maybe able to use a different css file defining the print


<link rel="stylesheet" href="style-print.css" type="text/css" media="print">


Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

jpkuhn
Starting Member

France
38 Posts

Pre-sales questions only
(More Details...)

Posted - 03/21/2018 :  14:21:18  
I'll try it, thanks

JPK
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000