Forum Moderators: open
thanks
regards
Henry
The joys of Strict :) :)
<edit> Corrected real errors in first draft</edit>
it works for me, hope this helps,
Mike
<script LANGUAGE= Javascript> is invalid in any level of 4.01
<script type="text/javascript" language="javascript"></script> is valid in 4.01 Transitional only, while
<script type="text/javascript"> is valid in 4.01 Strict
Actually, the language="javascript" part is deprecated period.
<script type="text/javascript"> validates in strict and transitional.
<body topmargin= "0" marginheight= "0" marginwidth= "0">
w3 validator has a problem with the above line
Line 55, column 17: there is no attribute "topmargin" (explain...).
the validator is pointing to each double quotes such as "0"
I tried attaching the "0" to the = sign but it does not work!
I am in DTD transitional mode
top: 0;
left: 0;
...is pointless without positioning.
margin: 0;
padding: 0;
...should be sufficient enough for all browsers. Just remember to apply the zero margin/padding to both html and body.
top: 0;
left: 0;
...is pointless without positioning.
There appears to be a bug in IE 5.1 on the Mac when using the position:absolute; on the body to control 0 margins (has to do with image backgrounds on the body and a <div>). I've since removed the position:absolute; and continue to use the top and left as shown above. Do I not need those attributes any more if not using the position: attribute?