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. ~TJReceived on Friday, 11 January 2013 18:15:45 UTC
This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:25 UTC