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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i get rid of the marginon html pages.. 1

Status
Not open for further replies.

adamr1001

MIS
Jul 25, 2001
166
CA
i placed a flash object on an html page, and by default there is a 3-5 pixel top and left margin..

how do i get rid of it?

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

via CSS:

<style>
body {
margin: 0;
padding: 0;
}
</style>

or inline:

<body style=&quot;margin: 0; padding: 0;&quot;>

 
The CSS is the better option... But don't forget to specify the type and units:

Code:
<style type=&quot;text/css&quot;>
body
{
     margin: 0px;
     padding: 0px;
}
</style>

Hope this helps,

Dan
 
i think this may have answered my post above. ty.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top