Forum Moderators: not2easy
this is agreat site and i have lernt a lot from it. thanks alot everbody.
Problem:
i have set up the website i am working on to print using css, and as said on the other postings the code only works on ie6. in my webpage i reference to two style sheets, which is fine,in ie6 but it does not work on other early web browers (ie5.0, ie5.5). when i view the page in an early browser, the page seems to read only the one style sheet.
is there any way one can tell the browser which style sheet to read first.
i would not mind if the user, using the site with ie5.0 can not print.
i hope i have written my problem out clearly
thanks in advance
thanks for your prompt reply.
i got the print css to work. when i call the the page up in an early vision of ie the page calls the print css before it call my css. so the the side menu and the top menu are hidden.
here is the code i f=have for both css:
my css:
sidemenu {position:absolute;
left:0;
top:70;
visibility: display;
}
.topmenu {position:absolute;
left:178;
top:70;
visibility: display;
}
.Content {position:relative;
left:70;
height:338;
width:610;
overflow:scroll;
}
print css:
.topmenu {
visibility: hidden;
}
.Content {
position: absolute;
top: 80px;
left:0px;
padding:10px;
overflow:none;
}
.sidemenu {
visibility: hidden;
}
i have also tryed toplace the print css above my css but still there is a problem.
thanks
Currently I'm having a problem with the way a Mac prints a file and a way a PC prints a file. The PC prints fine. However a Mac's font print out is way to small. Therefore I have different .ccs files when the xsl file is loaded. Could you please let me know why the following doesn't work? Right now this code defaults to whatever is under the else clause.
I also tried to put these lines under in between the <script language="JavaScript1.2">,</script> tags. However I don't get any outputs.
FYI: I'm new to ccs and xsl.
<head>
if (navigator.userAgent.toLowerCase().indexOf("mac")!=-1) {
document.write("<link rel='stylesheet' href='macstyles.css' type='text/css'>");
} else {
document.write("<link rel='stylesheet' href='pcstyles.css' type='text/css'>");
}
</head>
what my script tags look like. The code above doesn't work when placed in between:
<script language="JavaScript1.2">
<xsl:comment>
<xsl:call-template name="js"/>
<xsl:text>// </xsl:text>
</xsl:comment>
</script>