On 7/28/12 5:10 AM, Philip TAYLOR wrote:
Philippe Wittenbergh wrote:>
Le 28 juil. 2012 à 20:29, Markus Ernst a écrit :
The headings here match the width of 3 image elements plus borders
and the 2 margins between them. With space characters added to the
margins, the width cannot be caluclated reliably anymore.
Write your source code without any white-space between the blocks ?
That is what I am frequently forced to do, but it is a horrible hack; one
should be able to write HTML in such a way as to make the semantics
clear, not forced to run everything on to one line simply because there
is not an appropriate container property that can be used to indicate
"end of line to be ignored within the scope of this container".
Philip Taylor
You are on the right track when you talk about a container.
There's another alternative that lets you retain the white-space in the
HTML, which is to use a font-size of zero on some container, and restore the
font-size on the paragraphs with a value other than EMs or percents.
Keywords, REMs, or pixels will work.
Suppose you wrap the "floating" DIVs in a DIV.container element. (Yes, very
imaginative, I know:) Here I use the keyword "medium". YMMV -
.container { font-size: 0; }
.container p { font-size: medium; }
--
Cordially,
David
.
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/