W3C home > Mailing lists > Public > www-style@w3.org > August 2012

RE: [css3-break] Breaking using <br> element

From: Mihai Balan <mibalan@adobe.com>
Date: Tue, 14 Aug 2012 12:45:03 +0100
To: Simon Sapin <simon.sapin@kozea.fr>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <32E5AE8565CC6142BA0AAFA5A95697E0461FAFD352@eurmbx01.eur.adobe.com>
Hi Simon,
Thanks for the tip. In my testing, I actually tried with «display: block» included, but forgot to add it to the code sample in my initial email.
So does this mean that if the <br> is made «display: block» it should produce page/column/region breaks? (Thus meaning that WebKit & IE are buggy and FF & Opera do it right)


Mihai Balan | Quality Engineer / WebKit team |  mibalan@adobe.com | +4-031.413.3653 / x83653 | Adobe Systems Romania

-----Original Message-----
From: Simon Sapin [mailto:simon.sapin@kozea.fr] 
Sent: Tuesday, August 14, 2012 1:29 PM
To: www-style@w3.org
Subject: Re: [css3-break] Breaking using <br> element

Le 14/08/2012 11:37, Mihai Balan a écrit :
> .break {
>      break-after: page; /* or column or region */ }

The spec says the break-* properties apply to "block-level elements, table row groups, table rows". Try this:

.break {
   display: block;
   height: 0;
   break-after: page;

Simon Sapin
Received on Tuesday, 14 August 2012 11:45:42 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:02 UTC