dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: alignment in web page help please

  1. #1
    Junior Member
    Join Date
    Aug 2001
    Posts
    12

    alignment in web page help please

    Hi all
    I have my swf file, how do i set the alignment so its always centered in the browser at the top & in the middle, it keeps going top left corner, also how do make the page always fit to screen size?

    just want to make my web site look tidy
    Any help greatly appreciated

    Regards

    James C

  2. #2
    Senior Member
    Join Date
    May 2008
    Posts
    332
    Add these styles to the styles in your CSS or as a style to the individual page in the <head> like this:
    Code:
    <style type="text/css">
    <!--
    body {
    	border: 0px;
    	margin: 0px;
    	padding: 0px;	
    }
    #main_container {
    	width: 1000px;
    	height: 500px;	
    	border:none;
    	padding: 0px;
    	margin-left: auto;
    	margin-right: auto;
    }
    -->
    </style>
    Then put your Flash into the main_container. Be sure to change the width and height to match the correct size of your Flash.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center