Common SWF questions: How can I centre a SWF on the page?If the only thing you want to present on the page is a SWF file, then the most visually pleasing layout is to have it centred both horizontally and vertically. Horizontally is easy in many ways in HTML, but vertically requires a few CSS tricks, as below. The CSS style #wrapper below will achieve this, note the specifications which apply to the SWF size. The CSS wrapper<style type="text/css"> Using the CSS wrapper in HTMLOnce the CSS style is linked to the HTML page, you can call it like this: <body style="margin:0px; padding:0px"> |
Site content Copyright © 2001-2014 Galaxy Graphics Limited. | Privacy Policy | Terms of use |