HighDots Forums  

Unwanted margins in IE 5 Mac

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Unwanted margins in IE 5 Mac in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Claude Saccaro
 
Posts: n/a

Default Unwanted margins in IE 5 Mac - 07-08-2004 , 01:05 PM






I'm getting unwanted margins all around this sliced image in IE 5 on Mac
OS9 and X. See url below.

This is the page with the image and the frame html page that contains it:

http://www.diatom-ae.com/designpagebase.html
http://www.diatom-ae.com/designpage.html

This page is set to pop up at a fixed size (600 x 323) window.

I've got all the marginwidth + height tags in place correctly I believe.

Any fix to remove the borders?

Thanks.


Reply With Quote
  #2  
Old   
seb
 
Posts: n/a

Default Re: Unwanted margins in IE 5 Mac - 07-08-2004 , 01:13 PM






the border can be added by default to the frame tag in the framset, AND
to the body tag in each html page that loads in each frame.
So you have to set the border to zero in the frameset (which you've
already done) AND in the body tag of your html pages (which you have not
done).

Now, there are various ways to do this, simplest is to open your html
page, change page properties, and set all margins to zero. But some say
this method will not work in all browsers (although I've never seen it
fail) and the better way is to add the following style to your page:

body {
padding: 0;
margin: 0 -10px 0 -10px;
/*/*/margin: 0 0 0 0; /* */
}


Claude Saccaro wrote:

Quote:
I'm getting unwanted margins all around this sliced image in IE 5 on Mac
OS9 and X. See url below.

This is the page with the image and the frame html page that contains it:

http://www.diatom-ae.com/designpagebase.html
http://www.diatom-ae.com/designpage.html

This page is set to pop up at a fixed size (600 x 323) window.

I've got all the marginwidth + height tags in place correctly I believe.

Any fix to remove the borders?

Thanks.


Reply With Quote
  #3  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Unwanted margins in IE 5 Mac - 07-08-2004 , 01:20 PM



You have not controlled the margins on the page in the frame.

Link to an external stylesheet (using DW's CSS editor), or embed a
stylesheet in your code (between <head> and </head>) with the following
style in it (embedded shown for cut-n-paste convenience) (assuming you want
zero margins) -

<style type="text/css">
<!--
body { margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left:
0px; padding:0px; }
-->
</style>

you could also try

body { margin : 0px 0px 0px 0px; padding:0px; }

or

body { margin : 0px; padding:0px; }

as a shorthand method.

This will take care of the margins in IE4+ and NN6. To take care of NN4x,
you will need to use MODIFY | Page Properties... and set the two right hand
margin fields (marginwidth and marginheight) to 0 (DMX and below).

Since you are still using inline margin specs in the body tag, this method
won't validate (and is not easy to do in DMX2004). To get completely valid
code that works for all
browsers in any version of DW, change your stylesheet as shown below -

body {
padding: 0;
margin: 0 -10px 0 -10px;
/*/*/margin: 0 0 0 0; /* */
}


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Claude Saccaro" <claude (AT) diatom-ae (DOT) com> wrote

Quote:
I'm getting unwanted margins all around this sliced image in IE 5 on Mac
OS9 and X. See url below.

This is the page with the image and the frame html page that contains it:

http://www.diatom-ae.com/designpagebase.html
http://www.diatom-ae.com/designpage.html

This page is set to pop up at a fixed size (600 x 323) window.

I've got all the marginwidth + height tags in place correctly I believe.

Any fix to remove the borders?

Thanks.




Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Unwanted margins in IE 5 Mac - 07-08-2004 , 09:51 PM



You're welcome!

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Claude Saccaro" <claude (AT) diatom-ae (DOT) com> wrote

Quote:
Thanks for the info.







Reply With Quote
  #5  
Old   
Claude Saccaro
 
Posts: n/a

Default Re: Unwanted margins in IE 5 Mac - 07-08-2004 , 09:51 PM



Thanks for the info.





Reply With Quote
  #6  
Old   
Claude Saccaro
 
Posts: n/a

Default Re: Unwanted margins in IE 5 Mac - 07-10-2004 , 02:44 PM



I still seem to be having margin problems with IE (5.2.2)/Mac on this page:

http://www.diatom-ae.com/designpagebase.html

I inserted this in the head:

<style type="text/css">
body {
padding: 0;
margin: 0 -10px 0 -10px;
/*/*/margin: 0 0 0 0; /* */
}
</style>

No change in IE. (after repeatedly making sure that the cache had been
cleared).

(I assume the the <style type="text/css"> </style> are needed).

What did I screw up?


Reply With Quote
  #7  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Unwanted margins in IE 5 Mac - 07-10-2004 , 02:48 PM



It looks identical to me in IE6 and IE5.2/Mac.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Claude Saccaro" <claude (AT) diatom-ae (DOT) com> wrote

Quote:
I still seem to be having margin problems with IE (5.2.2)/Mac on this
page:

http://www.diatom-ae.com/designpagebase.html

I inserted this in the head:

style type="text/css"
body {
padding: 0;
margin: 0 -10px 0 -10px;
/*/*/margin: 0 0 0 0; /* */
}
/style

No change in IE. (after repeatedly making sure that the cache had been
cleared).

(I assume the the <style type="text/css"> </style> are needed).

What did I screw up?




Reply With Quote
  #8  
Old   
Claude Saccaro
 
Posts: n/a

Default Re: Unwanted margins in IE 5 Mac - 07-10-2004 , 03:36 PM



the link is direct to the page. To view it in it's intended pop up
window go to:

www.diatom-ae.com/home.html

click "design"

The image should have no borders around it.


Murray *TMM* wrote:

Quote:
It looks identical to me in IE6 and IE5.2/Mac.



Reply With Quote
  #9  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Unwanted margins in IE 5 Mac - 07-10-2004 , 03:40 PM



I dunno. This site is one of the reasons I hate frames. You have
constructed a nuclear power plant here with frames opening framesets and on
and on. Sorry - but it's way too complex for the small esthetic benefit in
my opinion.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Claude Saccaro" <claude (AT) diatom-ae (DOT) com> wrote

Quote:
the link is direct to the page. To view it in it's intended pop up
window go to:

www.diatom-ae.com/home.html

click "design"

The image should have no borders around it.


Murray *TMM* wrote:

It looks identical to me in IE6 and IE5.2/Mac.





Reply With Quote
  #10  
Old   
Claude Saccaro
 
Posts: n/a

Default Re: Unwanted margins in IE 5 Mac - 07-10-2004 , 08:10 PM



Well, I hate frames just as much as the next guy but they're the most
reliable way I know to get rid of unwanted / uneccessary scrollbars...

Murray *TMM* wrote:
Quote:
I dunno. This site is one of the reasons I hate frames. You have
constructed a nuclear power plant here with frames opening framesets and on
and on. Sorry - but it's way too complex for the small esthetic benefit in
my opinion.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.