Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

moge

macrumors newbie
Original poster
Sep 20, 2004
2
0
I'm a flash guy and know little of the HTML coding world and hope someone can help with what seems like a simple thing. I have a site that pops up a window with a flash movie. The window is the right size for the movie with no scroll bars. Works just fine in IE but in Safari and Netscape I can't get rid of the top margin - the flash movie sits about 20 pixels down from the top and cuts off the bottom. I have...

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

Is there another tag I'm supposed to have in there that they will read?

Thanks -

MOGE
 
I use a lot of WYSIWYG instead of hard coding also- but in my pop-ups, Dreamweaver puts this code into the <head> of the document-

<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url();
}
-->
</style>


I have had issues with Safari on pop-ups in another area- when I set a pop-up to an exact size with no scroll bars, it looks perfect in other browsers, but in Safari the right and bottom edges of the window have an extra pixel or so, which usually ends up being a nasty white border.
 
Figured it out...

My flash movie was inside of a paragraph left align tag. When I took that out, it got rid of the top margin. Not sure how it all works, but it does. Thanks for the help.
 
you should really only put text inside of a <p> tag. by default, every browser has a set way of styling each HTML element, for example, the <p> has a top margin of so many pixels and an <h1> has a certain font-size with a top margin of a bunch of pixels.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.