QUICK TIP FOR FLASH ON FIREFOX (REVISITED)TUESDAY, MARCH 1 2005 @ 04:54 PMYesterday, I was saying there was a simple solution to overcome an apparently simple issue ocurring on Firefox, when attempting to make a Flash movie strecht its height to the available space in the browser window, using the //1<\/div> parameter of the //1<\/div> and/or //1<\/div> tags. I offered a CSS solution, but, as noted by Brajeshwar, I took for granted the understanding of the trick, and failed to explain that there's more to it than just throwing in the hack.
First of all, Firefox is most respectful of standards, and will take seriously whatever doctype you declare on your HTML document. As a matter of fact, if you are using the page to ONLY contain a SWF file, you could just not declare a doctype and avoid the problem altogether. However, not declaring a doctype means that the browser will render your HTML in a 'pre-standards' way, which might not be what we need either, especially if the HTML document contains more than just the SWF file; this is where my proposed workaround enters the stage. body, html {
Here we are forcing the recognition of height (or rather a percentual height) as a valid attribute of the body and html tags, thus granting them access to all the vertical space available in the browser window, without affecting anything else determined by the doctype in place. Now, I accept is not pretty, however, I think it is not a crime to bend the strictness of the standard whe it doesn't kill anybody, just know what you are doing. Thanks to Brajeshwar for reminding me of my responsibilities as a community blogger. Archived under: Flash. | Permalink | google | del.icio.us | digg ![]() FELIX TURNERMARCH 1 2005 @ 08:39 PMI've found that using height:100% cause IE5.x on the Mac to break. It will add an amount to the width of page equal to the height of the page. A very odd bug. The code below will hide the height rule from the offending browser.
html, body { /* */ height:100%; /* hide from Mac IE 5.x */ overflow-y: hidden; } |
LANGUAGESARTICLES
BOOK REVIEWSSYNDICATIONFLASH
FLASH (ESPA�OL)
ADOBE
AGGREGATORS
USER GROUPS |
|


