Background-size property has no effect for print (svg, eps)

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
oleksandr_kokoshyn
Propeller Head
Posts: 27
Joined: Mon Sep 03, 2018 4:19 am

Background-size property has no effect for print (svg, eps)

Post by oleksandr_kokoshyn »

Hi All,
I'm editing the div style for warnings that contain the warning icon on the left. The warning icon is a background image.
The background-size property has no effect for the print medium for svg and eps images. It works fine for HTML (default medium), but not for print. I have to change the size of the image itself (the file) for the print medium. Does anybody else have this problem and is there a solution?
Here's the css:

Code: Select all

div.notice
{
	background-repeat: no-repeat;
	border: solid 1px #606060;
	border-radius: 6px;
	padding-right: 10px;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	background-image: url('../Images/generic/notice60px.svg');
	color: #000000;
	padding-bottom: 10px;
	margin-top: 10px;
	padding-top: 5px;
	background-size: 40px;
	min-height: 51px;
	background-color: #e6e6e6;
	background-position: 8px 5px;
	padding-left: 60px;
}
No matter what I put in background-size, it always uses the original image size for the print medium.
Post Reply