- From: David Woolley <forums@david-woolley.me.uk>
- Date: Sat, 24 Nov 2012 11:41:15 +0000
- To: Behrang Saeedzadeh <behrangsa@gmail.com>
- CC: www-style CSS <www-style@w3.org>
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