Sent by James Leslie on 16 March 2007 13:01
> The line-height of the containing element (<p> for example) will be
> the thing you are wanting to adjust to change that spacing.
Or maybe padding or margin, as suggested in another reply. Setting
line-height for a paragraph affects _all_ lines, so it would be somewhat
problematic here. Anyway, some container element is usually needed for
setting the spacing, and often it is best to replace, say,
<div class="...">foo<br>bar</div>
by two div elements:
<div class="...">foo</div> <div class="...">bar</div>
because then you can just concentrate on setting a bottom margin or a
top margin and not worry about any <br>.
-----------
I totally agree, I haven't used <br> tags for a couple of years myself,
but as a css solution that doesn't involve changing markup, line-height
should do the trick.
The line-height affecting all paragraphs including the <br> would surely
be the desired effect for a line break though I think, otherwise it is
not a 'line break' but a distinct paragraph and should be coded as such.
James
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/