CAUTION: margin-bottom problem with Netscape 4.x

K

kevin

Netscape 4.x does not support the margin-bottom setting for anything
other than 0. This causes Pics to be superimposed directly on top of
the text below them - or in some cases a large section of the pic
will be cut off. This happened to several of my pages, and I just
checked and found out. So I spent a couple of hours trying different
changes until I isolated the problem.

Here is the test page with both the problem - and the fix:

http://www.infocellar.com/internet/Netscape4x-problem1.htm

This happens when you manually change your Line Spacing setting to
Pics - either the "after text" for indentation - or the "after" for
Spacing. Either change adds the "margin-bottom" tag to your code,
which Netscape can't handle.

Default Line Spacing
---------------------------------

As an aside, I noticed that the default settings, even though all
fields in "Format/Paragrapgh" will be empty unless you manually set
them - is 18 points before, 18 points after, and single line spacing
(100%). You can test this - type in two lines with a carriage return.
Then select the two lines and go to Format/Paragraph and enter:
Before: 18 After: 18 Line Spacing: Single (100%)

You will see no change in the spacing. Some people say the default is
double-space, but if you select the two lines and then set the spacing
to Double, you will see that it "increases" the spacing somewhat. I
must say, though, that I only tested this using the FP preview window
and it may vary between browsers. Also, I used the "Normal" font, and
this may also cause it to vary.

The Margin-bottom Problem
-------------------------------------------

If you select your pic along with a few lines of text and then set the
"after" setting - using either indentation "After Tex" or Spacing
"After" - then your pic will over lay on top of the text. What
happens, is that this places the "margin-bottom" tag in your code. It
works fine with text in Netscape 4.x but not with Pics.

NOTE: with pics - manually setting the Indentation "After Text" or
the Spacing "After" settings will do the same thing to your code.
Both of those setting will add the "margin-bottom" tag. This is
because the pic has no text to indent - so FP confuses indentations
(which are left/right) with margins (which are top/bottom).

To fix, delete the margin-bottom tag, or simply set it to:

margin-bottom: 0

Now your image will jump back up, above the text line, where it should
be. Of course, you may not have this problem at all - but in case you
do, to avoid this overall, just never edit the "after" settings in
the Paragraph box for pics. If there is no entry there - then there
will be no margin-bottom tag in your HTML code. I ended up searching
all instances of that tag in my pages - I did not delete them but
instead I set them all to 0, and now all my pages work fine in
Netscape 4.x
 
S

Stefan B Rusynko

NN4x did not support inline styles well and margins
See
http://www.richinstyle.com/bugs/netscape4.html




<kevin> wrote in message | Netscape 4.x does not support the margin-bottom setting for anything
| other than 0. This causes Pics to be superimposed directly on top of
| the text below them - or in some cases a large section of the pic
| will be cut off. This happened to several of my pages, and I just
| checked and found out. So I spent a couple of hours trying different
| changes until I isolated the problem.
|
| Here is the test page with both the problem - and the fix:
|
| http://www.infocellar.com/internet/Netscape4x-problem1.htm
|
| This happens when you manually change your Line Spacing setting to
| Pics - either the "after text" for indentation - or the "after" for
| Spacing. Either change adds the "margin-bottom" tag to your code,
| which Netscape can't handle.
|
| Default Line Spacing
| ---------------------------------
|
| As an aside, I noticed that the default settings, even though all
| fields in "Format/Paragrapgh" will be empty unless you manually set
| them - is 18 points before, 18 points after, and single line spacing
| (100%). You can test this - type in two lines with a carriage return.
| Then select the two lines and go to Format/Paragraph and enter:
| Before: 18 After: 18 Line Spacing: Single (100%)
|
| You will see no change in the spacing. Some people say the default is
| double-space, but if you select the two lines and then set the spacing
| to Double, you will see that it "increases" the spacing somewhat. I
| must say, though, that I only tested this using the FP preview window
| and it may vary between browsers. Also, I used the "Normal" font, and
| this may also cause it to vary.
|
| The Margin-bottom Problem
| -------------------------------------------
|
| If you select your pic along with a few lines of text and then set the
| "after" setting - using either indentation "After Tex" or Spacing
| "After" - then your pic will over lay on top of the text. What
| happens, is that this places the "margin-bottom" tag in your code. It
| works fine with text in Netscape 4.x but not with Pics.
|
| NOTE: with pics - manually setting the Indentation "After Text" or
| the Spacing "After" settings will do the same thing to your code.
| Both of those setting will add the "margin-bottom" tag. This is
| because the pic has no text to indent - so FP confuses indentations
| (which are left/right) with margins (which are top/bottom).
|
| To fix, delete the margin-bottom tag, or simply set it to:
|
| margin-bottom: 0
|
| Now your image will jump back up, above the text line, where it should
| be. Of course, you may not have this problem at all - but in case you
| do, to avoid this overall, just never edit the "after" settings in
| the Paragraph box for pics. If there is no entry there - then there
| will be no margin-bottom tag in your HTML code. I ended up searching
| all instances of that tag in my pages - I did not delete them but
| instead I set them all to 0, and now all my pages work fine in
| Netscape 4.x
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top