wallanparsons
IS-IT--Management
In our application the customer can print a label, and its controlled by a CSS file. A window will pop up in IE with a preview and then they can print.
The issue im having is that depending on what IE allows a customer to set their "page setup" to, i.e margins. I have to change nearly every css file to print right according to their IE settings.
Is there a way to make the CSS file more "universal" in some way?
Below is what we use.... Thanks in advance!
.printAssetLabelPANEL1
{
top: 0in;
left: -.25in;
position: absolute;
height: 1in;
width: 2in;
}
.printAssetLabelPANEL2
{
top: 0in;
left: 1.75in;
position: absolute;
height: 1in;
width: 2in;
}
.printAssetLabelPANEL3
{
top: 1in;
left: -.25in;
position: absolute;
height: 1in;
width: 2in;
}
.printAssetLabelPANEL4
{
top: 1in;
left: 1.75in;
position: absolute;
height: 1in;
width: 2in;
}
.printAssetLabelPANEL5
{
top: 2in;
left: -.3in;
position: absolute;
width: 4.2in;
}
.printAssetLabelBold
{
font-weight: bold;
font-family: Arial;
font-size: 18pt;
color: Black;
text-align: center;
padding-bottom: 1px;
vertical-align: top;
width: 2in;
}
.printAssetLabelStandard
{
font-weight: normal;
font-family: Arial;
font-size: 10pt;
color: Black;
text-align: center;
padding-bottom: 1px;
vertical-align: top;
width: 2in;
}
.printAssetLabelLargeInverted
{
font-weight: normal;
font-family: Arial;
font-size: 46pt;
color: White;
text-align: center;
background-color: Black;
padding-top: 14px;
padding-bottom: 20px;
vertical-align: baseline;
height: 1.0in;
width: 4.2in;
}
.printAssetLabelLarge
{
font-weight: normal;
font-family: Arial;
font-size: 24pt;
color: Black;
text-align: center;
padding-top: 10px;
padding-bottom: 1px;
height: 0.3in;
width: 4.2in;
}
.printAssetLabelLargeBold
{
font-weight: bold;
font-family: Arial;
font-size: 38pt;
color: Black;
text-align: center;
border: dashed 1px WHITE;
padding-bottom: 1px;
height: 0.3in;
width: 4.2in;
}
The issue im having is that depending on what IE allows a customer to set their "page setup" to, i.e margins. I have to change nearly every css file to print right according to their IE settings.
Is there a way to make the CSS file more "universal" in some way?
Below is what we use.... Thanks in advance!
.printAssetLabelPANEL1
{
top: 0in;
left: -.25in;
position: absolute;
height: 1in;
width: 2in;
}
.printAssetLabelPANEL2
{
top: 0in;
left: 1.75in;
position: absolute;
height: 1in;
width: 2in;
}
.printAssetLabelPANEL3
{
top: 1in;
left: -.25in;
position: absolute;
height: 1in;
width: 2in;
}
.printAssetLabelPANEL4
{
top: 1in;
left: 1.75in;
position: absolute;
height: 1in;
width: 2in;
}
.printAssetLabelPANEL5
{
top: 2in;
left: -.3in;
position: absolute;
width: 4.2in;
}
.printAssetLabelBold
{
font-weight: bold;
font-family: Arial;
font-size: 18pt;
color: Black;
text-align: center;
padding-bottom: 1px;
vertical-align: top;
width: 2in;
}
.printAssetLabelStandard
{
font-weight: normal;
font-family: Arial;
font-size: 10pt;
color: Black;
text-align: center;
padding-bottom: 1px;
vertical-align: top;
width: 2in;
}
.printAssetLabelLargeInverted
{
font-weight: normal;
font-family: Arial;
font-size: 46pt;
color: White;
text-align: center;
background-color: Black;
padding-top: 14px;
padding-bottom: 20px;
vertical-align: baseline;
height: 1.0in;
width: 4.2in;
}
.printAssetLabelLarge
{
font-weight: normal;
font-family: Arial;
font-size: 24pt;
color: Black;
text-align: center;
padding-top: 10px;
padding-bottom: 1px;
height: 0.3in;
width: 4.2in;
}
.printAssetLabelLargeBold
{
font-weight: bold;
font-family: Arial;
font-size: 38pt;
color: Black;
text-align: center;
border: dashed 1px WHITE;
padding-bottom: 1px;
height: 0.3in;
width: 4.2in;
}