<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    
                        <title>milov.nl: comma-separated list elements in css</title>
          <link>http://milov.nl/2883</link>
          <description>Weblog/photolog of Milo Vermeulen</description>
          <lastBuildDate>Sat, 15 Jan 2005 14:40:46 GMT</lastBuildDate>
                                <item>
              <title>Milo</title>
              <link>http://milov.nl/2883#comment6247</link>
              <guid>http://milov.nl/2883#comment6247</guid>
              <pubDate>Sat, 15 Jan 2005 14:40:46 GMT</pubDate>
              <description>Re: http://annevankesteren.nl/img/favicon.png
Your favicon is black-on-transparent, and too large (32x32) to be visible as a background-image in your name-link, meaning it won't even show now that I've fixed the detection! :)</description>
            </item>
                      <item>
              <title>Anne</title>
              <link>http://milov.nl/2883#comment6244</link>
              <guid>http://milov.nl/2883#comment6244</guid>
              <pubDate>Sat, 15 Jan 2005 14:22:05 GMT</pubDate>
              <description>Quite bad that you can't locate my favicon Milo ;-)

Re #6, I'll post an example later if I can get it to work.</description>
            </item>
                      <item>
              <title>Mathieu 'P01' HENRI</title>
              <link>http://milov.nl/2883#comment6239</link>
              <guid>http://milov.nl/2883#comment6239</guid>
              <pubDate>Thu, 13 Jan 2005 13:53:37 GMT</pubDate>
              <description>ul.links:first-letter { text-transform: uppercase; }

works ;)</description>
            </item>
                      <item>
              <title>Low</title>
              <link>http://milov.nl/2883#comment6238</link>
              <guid>http://milov.nl/2883#comment6238</guid>
              <pubDate>Thu, 13 Jan 2005 13:40:57 GMT</pubDate>
              <description>Yeah, tried that too...</description>
            </item>
                      <item>
              <title>Milo</title>
              <link>http://milov.nl/2883#comment6237</link>
              <guid>http://milov.nl/2883#comment6237</guid>
              <pubDate>Thu, 13 Jan 2005 13:12:21 GMT</pubDate>
              <description>Strange, trying to make your last example work, I thought

ul.links li:first-child a:first-letter { text-transform: uppercase; }

*would* work, but it also doesn't.</description>
            </item>
                      <item>
              <title>Low</title>
              <link>http://milov.nl/2883#comment6236</link>
              <guid>http://milov.nl/2883#comment6236</guid>
              <pubDate>Thu, 13 Jan 2005 13:04:31 GMT</pubDate>
              <description>&gt; unless I remove all whitespace

I was gonna say that; you beat me to it. Anyway, if you _would_ remove the whitespace or if the css3 rule would work, my vote would go out to:

ul.links li:before { content: &quot;, &quot;; } 
ul.links li:first-child { text-transform: capitalize; } 
ul.links li:first-child:before { content: &quot;&quot;; } 
ul.links li:last-child:before { content: &quot; and last but not least: &quot;; } 
ul.links li:last-child:after { content: &quot;.&quot;; }

I was going for something like &quot;ul.links li:first-child:first-letter { text-transform: uppercase; }&quot;, but that didn't work.

:)</description>
            </item>
                      <item>
              <title>Milo</title>
              <link>http://milov.nl/2883#comment6235</link>
              <guid>http://milov.nl/2883#comment6235</guid>
              <pubDate>Thu, 13 Jan 2005 12:58:25 GMT</pubDate>
              <description>It'll always look like &quot;One, two&quot; or &quot;One ,two&quot; unless I remove all whitespace from between the &lt;li&gt;-elements (which I don't intend to do), or &quot;white-space-collapse: discard;&quot; was actually possible. http://fantasai.inkedblade.net/style/specs/css3-text/scratchpad </description>
            </item>
                      <item>
              <title>Frenzie</title>
              <link>http://milov.nl/2883#comment6234</link>
              <guid>http://milov.nl/2883#comment6234</guid>
              <pubDate>Thu, 13 Jan 2005 12:13:55 GMT</pubDate>
              <description>It wouldn't appear as

One ,two

but as

One,two

which would be easy to solve by

content: &quot;, &quot;</description>
            </item>
                      <item>
              <title>Milo</title>
              <link>http://milov.nl/2883#comment6233</link>
              <guid>http://milov.nl/2883#comment6233</guid>
              <pubDate>Thu, 13 Jan 2005 11:15:34 GMT</pubDate>
              <description>I considered that, but it actually results in

One ,two ,three and four

which is not quite the same.</description>
            </item>
                      <item>
              <title>Arve</title>
              <link>http://milov.nl/2883#comment6232</link>
              <guid>http://milov.nl/2883#comment6232</guid>
              <pubDate>Thu, 13 Jan 2005 11:07:19 GMT</pubDate>
              <description>ul.links li::before { content: &quot;,&quot;; } 
ul.links li:first-child:before { content: &quot;&quot;; }
ul.links li:last-child::before { content: &quot; and &quot;; }

Example output:

One, two, three and four</description>
            </item>
                      <item>
              <title>Milo</title>
              <link>http://milov.nl/2883#comment6231</link>
              <guid>http://milov.nl/2883#comment6231</guid>
              <pubDate>Thu, 13 Jan 2005 10:17:14 GMT</pubDate>
              <description>By the way Anne, to make your idea work, won't I need some sort of :second-to-last selector to prevent the comma appearing before the &quot;and&quot;? (note the 'Related categories' list, I just tried it there)</description>
            </item>
                      <item>
              <title>Milo</title>
              <link>http://milov.nl/2883#comment6230</link>
              <guid>http://milov.nl/2883#comment6230</guid>
              <pubDate>Thu, 13 Jan 2005 08:02:17 GMT</pubDate>
              <description>Hmm, I don't think either a '.' or an 'and' are fitting here, since this is not really a sentence, just a listing. I mean, &quot;experiments and random&quot;, whazat??</description>
            </item>
                      <item>
              <title>Anne</title>
              <link>http://milov.nl/2883#comment6228</link>
              <guid>http://milov.nl/2883#comment6228</guid>
              <pubDate>Thu, 13 Jan 2005 07:02:26 GMT</pubDate>
              <description>In that case you could even make it more fancy, work with ::before and add a &amp; just before the end or 'and'.</description>
            </item>
                      <item>
              <title>Low</title>
              <link>http://milov.nl/2883#comment6227</link>
              <guid>http://milov.nl/2883#comment6227</guid>
              <pubDate>Wed, 12 Jan 2005 22:16:45 GMT</pubDate>
              <description>I'd even consider using...

ul.links li:last-child:after { content: &quot;.&quot;; }

...because of all the commas. I think it looks better with a full-stop at the end. But hey, that's just me.</description>
            </item>
                      <item>
              <title>Milo</title>
              <link>http://milov.nl/2883#comment6226</link>
              <guid>http://milov.nl/2883#comment6226</guid>
              <pubDate>Wed, 12 Jan 2005 22:09:34 GMT</pubDate>
              <description>Good point! That's what I was going for actually :)
I've updated the code sample (and my stylesheet).</description>
            </item>
                      <item>
              <title>Low</title>
              <link>http://milov.nl/2883#comment6225</link>
              <guid>http://milov.nl/2883#comment6225</guid>
              <pubDate>Wed, 12 Jan 2005 22:06:01 GMT</pubDate>
              <description>This seems to be working in Firefox (that is to say, I just checked it with edit-css ^_^):

ul.links li:after { content: &quot;,&quot;; } 
ul.links li:last-child:after { content: &quot;&quot;; }

Now the commas aren't part of the hyperlink, which I prefer. :)</description>
            </item>
                        
      </channel>
</rss>
