Sent by Jukka K. Korpela on 16 March 2007 13:01
On Fri, 16 Mar 2007, James Leslie wrote:
>> Anyway to set the {height} element on the <br /> tag?
>>
>> I've tried the following:
>>
>> .form html br{--}
>>
>> .form br {--}
>
> 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>.
> The <br> just
> causes the text to break to the next line before wrapping onto it.
Technically, we could set
br { display: block; height: 2em; }
but that does not work in practice. At least IE seems to implement <br> in
a special way that is immune to CSS (except that display: none removes its
effect)
--
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
______________________________________________________________________
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/