Forum Moderators: not2easy

Message Too Old, No Replies

RightMargin, Marginheigt not supported under netscape 4, 6 and 7

I'm cleaning out my files for backward-compatibilty. General issue

         

pengster

10:43 am on Oct 23, 2003 (gmt 0)

10+ Year Member



I created html files and linked to an external css (no selection planned to switch between different browsers).

I use dreamweaver. he tells me, if he checks the document for errors, that rightmargin, marginheight and marginwidth are not supported for netscape 4, 6 and 7.

In the external css, I added:


body {
background-image: url(/eprise/NEWCO/Images/background/background_company.gif);
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
}

I also formatted the body-tag:

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

My question:

If someone uses netscape and styles are not supported, but (i hope so) the linked styles within the css are supported, what will be used? What is higher up in the hierarchry? Is it the one that will be read first?
Is it wise to let them there simulanously?
Can I change
<body topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0" marginheight="0" marginwidth="0">
to
<body>?

thanks for reply!

DrDoc

2:51 pm on Oct 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World!

The styles should be applied and the body attributes ignored.
I would say that you can safely remove the attributes from the body tag.

hartlandcat

8:17 pm on Oct 23, 2003 (gmt 0)

10+ Year Member



marginwidth, marginheight, topmargin, leftmargin, rightmargin and bottom margin have never been standard HTML, so Netscape 7 has no reason to support any of them.