Re: Any plans to add a method for suppressing white space between inline-block elements?

Behrang Saeedzadeh wrote:

> 
> <div>
>    <div>foo</div><!--
> --><div>bar</div><!--
> --><div>baz</div>
> </div>
> 
> I think we need a more elegant way for suppressing white space (or any 
> text) inside an element (and not its children) in CSS.
> 
I would say that the HTML way was correct.  Assuming white space is 
permitted at that point (it is in HTML 4, but I'm not sufficiently 
familiar with HTML 5), it is real white space in the content, and real 
content should not be suppressed by styling, except temporarily.

Incidentally, although I've not double checked this, I think you can do 
it like this:

<div><div>foo</div
 ><div>bar</div
 >.....

-- 
David Woolley
Emails are not formal business letters, whatever businesses may want.
RFC1855 says there should be an address here, but, in a world of spam,
that is no longer good advice, as archive address hiding may not work.

Received on Saturday, 24 November 2012 11:41:53 UTC