Full Browser Flash conflicts with DOCTYPE in Firefox
Tuesday 20 December 2005 - Filed under Others
The problem is, when you create a full browser Flash embed code, something like this,
<object bla bla… width=”100%” height=”100%”…>
..
<embed bla bla… width=”100%” height=”100%”…/>
</object>
the code works fine in IE but failed in FireFox, Mozilla, Nescape etc…
The problem is caused by the <!DOCTYPE html PUBLIC “-//W3C//DTD … line, generated by Flash and DreamWeaver when you do the publish. After removing the DOCTYPE, it works fine in all browsers.
Not very sure whether there are any serious consequences of removing the DOCTYPE. If you have some strange browser compatability problem, try to remove this line first. If you want to keep it, then use style sheet set the body height to 100%.
2005-12-20 » 5566

6 November 2006 @ 5:34 pm
You should leave the DOCTYPE where it is.
Try setting the height of your body element to 100%.