- From: Markus Ernst <derernst@gmx.ch>
- Date: Sun, 13 Jan 2013 00:00:08 +0100
- To: "Thomas A. Fine" <fine@head.cfa.harvard.edu>
- CC: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style mailing list <www-style@w3.org>
Am 11.01.2013 20:31 schrieb Thomas A. Fine: > On 1/11/13 1:14 PM, Tab Atkins Jr. wrote: >> 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 > > No, that's not the problem, the problem is when a sentence lands on the > right margin, using the box model causes it to wrap early. Maybe not > hugely incorrect for ragged right, but for right-justified text it > completely disrupts the edge. Yes. As a web author, I'd see your problem as a use case for some kind of margin on inline and floating elements that collapses at the container boundaries. I see more use cases for this kind of margin, mainly horizontal navigations marked up as lists, where graphic designers often ask for bigger space between the list elements, than between the container boundaries and the first resp. last element in a line. You can't style this using :first-child if there can be more than one line of elements. -- Markus
Received on Saturday, 12 January 2013 23:00:46 UTC