Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get rid of margins

Dreamweaver & Flash

How to get rid of margins

by  raymondbirch  Posted    (Edited  )
Problem:
When a Flash movie and HTML page are created with the HTML Dimensions set to 100%, the Flash movie is still surrounded by space inside the browser window. How can the default margin settings be changed so that the content is flush with the inside edge of the browser window?

Solution:
After publishing the Flash movie and the HTML page, edit the HTML page by opening it in SimpleText, Notepad or a similar text editor.

Insert the following code into the document <body> tag:


<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">

Save the document, replacing the old HTML page.

Setting the margins to a specific pixel measurement controls the placement of the page in a browser. This technique works in the main browser window and in pages placed in a frameset.

Note:
Not all "margin" tags work with older versions of Netscape :(
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top