— Shang Liang

Full Browser Flash conflicts with DOCTYPE in Firefox

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%.

1 comment
  1. Matthias says: November 6, 20065:34 pm

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

Submit comment

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