- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Fri, 11 Jan 2013 10:14:55 -0800
- To: Markus Ernst <derernst@gmx.ch>
- Cc: "Thomas A. Fine" <fine@head.cfa.harvard.edu>, www-style mailing list <www-style@w3.org>
On Fri, Jan 11, 2013 at 4:48 AM, Markus Ernst <derernst@gmx.ch> wrote: > Am 10.01.2013 22:29 schrieb Tab Atkins Jr.: >> I'm with Hixie for now, in the corresponding thread you've raised in >> WHATWG about adding a <sentence> tag to HTML. This doesn't seem to be >> particularly useful, existing markup can handle it, > > <span class="sentence">I am a sentence.</span> > > .sentence { margin-right: 0.5em; } > > This has the downside that it won't justify when the end of the sentence > happens to be at the right margin. I am not perfectly familiar with all > aspects of CSS3, so forgive me if I am wrong, but I don't see how Thomas' > task could be handled with existing markup. Perhaps instead do: .sentence:not(:last-child) { margin-right: .5em; } That way, if it's the last element in it's container, it won't have the margin and will be able to justify. ~TJ
Received on Friday, 11 January 2013 18:15:45 UTC