Content

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

Talkback

  1. Matthias
    6 November 2006 @ 5:34 pm

    You should leave the DOCTYPE where it is.
    Try setting the height of your body element to 100%.

Share your thoughts

Re: Full Browser Flash conflicts with DOCTYPE in Firefox







Tags you can use (optional):
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

For spam filtering purposes, please copy the number 6531 to the field below: