I need help with changing the property value in the CSS based on the javascript condition. Not sure if this is possible or not. So lets me explain...
I have a javascript detects the browser & version, and assume it works fine. so I have a JS variable as below:
var browser = "IE8";
What I like to do is if "var browser = IE8" then change the style below for the .divFooter IN the @media print from "position: absolute;"; ELSE change the "position: relative;"
@media screen {
div.divFooter {
display: none;
}
@media print {
div.divFooter {
display: block;
position: absolute; /* -- This is where I want to change the condition based on the Browser Version variable that javascript detected. */
bottom: 0px;
font-size: 10pt;
text-align: center;
line-height: 120%; background: white;
font-family:Arial, Helvetica, sans-serif;
margin-top: 2em;
}
table {
page-break-after: avoid;
}
}
Thanks in advance,