Forum Moderators: open
here is the script
<script>
if (navigator.userAgent.indexOf("MSIE")!= -1)
{
document.body.style.font="30px";
}
else
{
document.body.style.font="50px";
}
</script>
but it does not work... and i dont want to use external css files. so can anyone help me? thanks!
document.body.style.fontSize="30px";
I was doing some research in this area, by the way, and stumbled on this tidbit.
As of Internet Explorer 6, when you use the!DOCTYPE declaration to specify standards-compliant mode, the default value for this property [fontSize] is small, not medium.Negative values are not allowed. Font sizes using the proportional "em" measure are based on the font size of the parent object.
Microsoft Font Size reference for IE6 [msdn.microsoft.com]