Dustin is a high school student in Boise Idaho. He's passionate about designing websites and is into some more obscure bands. You can see his stats and browse what he browses. Lastly, please look at his photos!
These are photos from my Flickr Photostream, I hope you love 'em. They're here to stay.
Did you know CSS supports even and odd selectors? I just found the docs as W3C.
Say you have a unordered list like so…
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
<li>Five</li>
<li>Six</li>
</ul>
If you were to craft a selector such as this…
ul {
list-style-type: none;
}
ul li {
display: block;
padding: 5px;
}
li:nth-child(even) {
background: #333;
color: #FFF;
}
It would change the color of every other list element. Cool hu?
David Desandro constructed a typeface made entirely out of CSS. Amazing.
This is insane. I’m looking through his css and I still don’t understand what’s going on.