No - that's not what I mean.
Here's an example.
I start typing in Dreamweaver, and press return. This gives me the
following -
<p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ac wisi.
Sed et urna nec wisi ornare porta. Suspendisse condimentum tellus nec ligula
lacinia commodo. Vivamus eros. Vestibulum libero erat, sodales eget,
imperdiet a, semper vel, nisl. Phasellus mollis auctor massa. </p>
and it places the cursor at a position that looks as if it has doublespaced.
I continue typing, and now I have this -
<p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ac wisi.
Sed et urna nec wisi ornare porta. Suspendisse condimentum tellus nec ligula
lacinia commodo. Vivamus eros. Vestibulum libero erat, sodales eget,
imperdiet a, semper vel, nisl. Phasellus mollis auctor massa. </p>
<p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ac wisi.
Sed et urna nec wisi ornare porta. Suspendisse condimentum tellus nec ligula
lacinia commodo. Vivamus eros. Vestibulum libero erat, sodales eget,
imperdiet a, semper vel, nisl. Phasellus mollis auctor massa. </p>
These two paragraphs (in the absence of any CSS) will appear to have a
double space between them. This is due to the default bottom margin of the
top </p> tag, and the default top margin of the bottom <p> tag. By using
CSS to specify an exact margin for the <p> tag, you will be able to bring
those and other paragraphs on the page closer together.
Now - imagine that the container (table cell - division - whatever) for that
text can grow or shrink in width, depending on the width of the browser
viewport. As long as the <p> tags are there, the text between then will
flow to fill the available width of the container in a visually pleasing
way.
If you had inserted a line-break instead of using CSS, then the line break
will always occur at that point regardless of how the text flows in the
available space. This could cause an unexpected cosmetic issue with the
appearance of the text in its container.
I am not saying to avoid the use of <br> at all. I am saying that to
recommend using <br> as a solution to the "double spacing" question may not
be the best response, or produce the best results, while the use of CSS
certainly will be.
--
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
==================
"judas2" <webforumsuser (AT) macromedia (DOT) com> wrote
Quote:
Murray: I recommended 2 things and you point at just one. I said I didn't
exactly understand what the user wanted. But now let me understand? do you
mean
that every line has to be a new paragraph and that I have always have to
avoid
the use of br? That's quite interesting. If it is like this could you
please
explain me why. I would be very grateful to you (as ever) |