Hi,
Yesterday I got some great help from a few members here, that included using the innerHTML property. When innerHTML is used for displaying content on a new page it seems to revert back to the default browsers font-size size and family regardless of style.
All other styles seem to work fine except the above two.
Can anyone help me??
function printMain() {
var pp = window.open();
pp.document.writeln("<html><head>");
pp.document.writeln("<link rel='stylesheet' type='text/css' href='../css/main.css'></head><body>")
var printMe = document.getElementById('main').innerHTML;
pp.document.writeln(printMe);
pp.document.writeln("</body></html>");
//pp.document.close();
pp.print();
}
Yesterday I got some great help from a few members here, that included using the innerHTML property. When innerHTML is used for displaying content on a new page it seems to revert back to the default browsers font-size size and family regardless of style.
All other styles seem to work fine except the above two.
Can anyone help me??
function printMain() {
var pp = window.open();
pp.document.writeln("<html><head>");
pp.document.writeln("<link rel='stylesheet' type='text/css' href='../css/main.css'></head><body>")
var printMe = document.getElementById('main').innerHTML;
pp.document.writeln(printMe);
pp.document.writeln("</body></html>");
//pp.document.close();
pp.print();
}