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

Re: Define <br> by CSS means?

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Sat, 21 Jul 2012 14:18:47 +0200
Message-ID: <500A9E27.6000402@kozea.fr>
To: www-style@w3.org
Le 21/07/2012 13:29, Dennis Amrouche a écrit :
> I feel totally unsafe with workarounds Simon suggested.... we wanted
> to minmize mark up right? Why put in there comments to prevent a
> white space?

Commenting white space is just a trick I had not thought of before 
seeing it. Don’t use it if you don’t like it.

As Dennis I don’t know Andrew’s use case. But one situation where such 
white space can be a problem is with consecutive inline-blocks. Another 
work-around is to set "font-size: 0" to the parent (so that the 
whitespace do not take any horizontal space) and restore some other 
font-size in each inline-block. Yes, it is ugly.

Each work-around may have its downsides. Pick the trade-off you prefer.

Anyway, the original question was answered. It is one solution for some 
problem. There may be other solutions, but as long as we don’t know what 
the original problem really is …

Simon Sapin
Received on Saturday, 21 July 2012 12:19:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:19 UTC