maya <ma********@yahoo.comwrote:
>I'm having a problem with spacing betw. paragraphs, whether use <br>'s
or <p>'s.. FF inserts so much more space betw. paragraphs than IE does
<br><brshows up differently in FF from how it shows up in IE.. I know
it's better practice to use <pinstead of <br>'s, but FF inserts space
ABOVE paragraph when you use <p>...
You have control over the margins of the paragraph element, but I
strongly recommend that you don't mess with the browser defaults. These
defaults are interdependent, change the margins on one element such as
<pand you'll find that other things then also needs adjusting. Unless
you know exactly what you are doing this commonly results in you having
margin issues all over the place and having to add frequent classes in
the markup in an attempt to combat these issues.
Usually a <pelement has a default top and bottom margin, but since
vertical margins normally collapse this rarely causes "double" margins.
In cases where the bottom margin of the block element above the
paragraph isn't adjacent to the paragraph's top margin, for example when
a border on either element prevents the margins from being adjacent,
this causes the margins no longer to collapse and may result in an
unwanted margin.
The best thing to do is to leave it, don't get to anal about the exact
position. You should expect certain rendering differences, this is
perfectly normal, attempting to force an 100% identical display across
various browsers almost always results in the introduction of other,
more serious issues. Plus as noted before you end up driving yourself
potty in your attempts to exert such precise control.
Don't fight this flexibility, it is a strength.
--
Spartanicus