W3C home > Mailing lists > Public > www-style@w3.org > June 2008

The <br> tag and the line-height CSS attribute.

From: Francois Remy <fremycompany_pub@yahoo.fr>
Date: Mon, 23 Jun 2008 12:33:22 +0200
Message-ID: <C6763C86D4EE4614A5B0CE8E3A2E94A8@FremyCompany1>
To: "CSS 3 W3C Group" <www-style@w3.org>

I'm recontacting you because I've detected, a long time ago, a thing that seems to be not clear in the CSS Specs.

When you have a <BR> that's alone on a line and when you apply a line-height attribute to it, should the line that he occupes change of height ?
>> IE a,d Opera say "yes" (I think this is what developers want)
>> Firefox and Safari say "no" (I think this is wat the spec want)

Test Code : 
A<br style="line-height: 1px;" /><!-- Normal line size -->
<br  style="line-height: 1px;" /><!-- Line of 1px ? -->
<br style="line-height: 1px;" />B<!-- Normal line size -->

What's the good answer ? Should that not appear in the spec ?


        Fremy :: Developpement Web (JavaScript + ASP.Net; XHTML; CSS2)
      Les Forums Developpez.com
      Le site Codes-Sources.com

Received on Monday, 23 June 2008 10:34:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:37 UTC