473,511 Members | 15,364 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

spacing betw paragrs -- FF vs IE..

hi,

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>...

any comments about this would be appreciated.. thank you..
Sep 28 '06 #1
5 2388
maya wrote:
hi,

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>...

any comments about this would be appreciated.. thank you..
sorry, have one more question about this...

</div(note it's a CLOSE-div tag..) autom. starts whatever comes after
in a new line, right?

and </spandoesn't... is this correct?

thanks again..

Sep 28 '06 #2
maya wrote:
hi,

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>...

any comments about this would be appreciated.. thank you..
Don't use <br><br>. Paragraph spacing is not what <bris for. If you're
using those instead of <p>, then you're basically saying that your whole
page is one paragraph. Is it? The purpose of HTML markup is to describe
the structural composition of your document, not to tell the browser
where line breaks go. It's then up to the browser to follow its own
rules for inserting line breaks, applying any CSS rules that have been
defined have the browser and/or the user call for it.

Do you really need paragraphs on your pages to be spaced differently
from paragraphs the user sees on every other page on the Web? That's
unlikely. If you do need to do that, or you need to alter the spacing
for a particular *kind* of paragraph, such as image captions or
footnotes, use the CSS margin properties.
Sep 28 '06 #3
maya wrote:
maya wrote:
>hi,

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>...

any comments about this would be appreciated.. thank you..

sorry, have one more question about this...

</div(note it's a CLOSE-div tag..) autom. starts whatever comes after
in a new line, right?

and </spandoesn't... is this correct?
By default browsers treat DIV elements as block elements and SPAN
elements as inline elements. This behavior can be altered by CSS using
the display and float properties.
Sep 28 '06 #4
On Thu, 28 Sep 2006, Harlan Messinger wrote:
By default browsers treat DIV elements as block elements and SPAN
elements as inline elements. This behavior can be altered by CSS
using the display and float properties.
The *rendering* can be altered, indeed; but the nesting of these
elements still has to conform to the relevant DTD - there's no way
that the rules of (x)HTML can be modified by CSS in such a way. (Just
in case anyone thought otherwise...)
Sep 28 '06 #5
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
Sep 28 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3438
by: Hal Vaughan | last post by:
I'm testing a GUI app on a couple Linux boxen and one Win2k box. I'm using Java 1.4.2 on each (or the closest on Win2k -- whatever version comes close). On one Linux box and the Win2k box the...
12
39084
by: Rick DeBay | last post by:
I'm trying to create a layout table, where the spacing between rows varies. I've tried using setting margin-top and border-top for the rows I wan't spaced down from the one above, and I've also...
7
7091
by: Danny | last post by:
I have a small <div> element which contains two text blocks - one within <h5> tags and the other within <p> tags. I don't want any extra line spacing between elements so use the display:inline...
5
2968
by: Andrew Poulos | last post by:
If I have a text INPUT within a block of text how do I 'correct' for the line spacing. The line spacing above and below the INPUT is larger than the line spacing generally: <div...
4
3550
by: fleemo17 | last post by:
Is there a way to tweak the spacing of lines of text (or leading) *specifically* in IE6? I've created a "Quick Search" box in my layout which renders pretty consistently in all the browsers I've...
12
2190
by: Sebastien B. | last post by:
I'm wondering if it's at all possible to have spacing between a table's cells, and only between the cells, not between the outter cells and the table's border. See end of message for an example...
4
2451
by: metoikos | last post by:
I've scoured the web (clumsily, I'm sure) for information on the difficulties I am having, checked my markup in validators, and had a friend with more CSS clue look over it, but I haven't had any...
10
11021
by: phil-news-nospam | last post by:
I have a table with 3 columns in 1 row. I want to increase the spacing _between_ the columns (gutter) _without_ increasing the spacing between those columns and the table itself. Is there a way...
1
3278
by: replyrpatil | last post by:
What I am trying to do: I need to print a compact access report (font 6 size) created using RTF2 program developed by Stephen Lebans to generate a TIF image of custom size (5.5 in x 2.0 in) ...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7353
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5662
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.