W3C home > Mailing lists > Public > www-html@w3.org > January 2006

Re: Will spacing issue after italics EVER be addressed?

From: Mikko Rantalainen <mikko.rantalainen@peda.net>
Date: Thu, 12 Jan 2006 16:44:15 +0200
Message-ID: <43C66B3F.9050607@peda.net>
To: Bonnie Granat <bgranat@granatedit.com>
Cc: www-html@w3.org

Bonnie Granat wrote:
> It's hard to believe that by 2006 there has been no manner of ensuring that
> extra space in inserted after an italicized word in HTML text.

I just wanted to add to the whole discussion that it's possible 
already to add space after every italicized portion of text if the 
UA (a.k.a. browser) supports CSS version 2.

Just add following CSS declarations inside the <head> element in 
your source:

<style type="text/css">
em:after,i:after { cont_ent: "\200B\00A0"; }
/*
	U+200B is zero width space
	U+00A0 is no-breaking space
	or you might also use
	U+2002 en space
	U+2003 em space
	U+2009 thin space
	U+200A hair space

	for example:
	em:after,i:after { content: "\200A"; }

*/
</style>

And you're done. Perhaps I should mention that Microsoft Internet 
Explorer doesn't support CSS 2... Mozilla, Firefox, Opera and Safari 
do, though.

Did I mention that this is still a bad idea? IF the user's UA does 
work correctly, you end up adding extra space that shouldn't be there.

-- 
Mikko
Received on Thursday, 12 January 2006 16:21:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:05 GMT