lightbulb
Labels: photo
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. — Mark Twain
customer service and me make a great team.
they take the test photo. i crop and photoshop it!
Labels: photo
This paragraph, for example, following the first, is indented.
In XHTML all paragraphs are enclosed in p tags. Since they are all p, there is no way to specifically target the first one, or only the ones following, with the standard p CSS selector.p {text-indent: 1em;} /*would apply to all paragraphs*/Of course, there are ways to target the first paragraph. Unfortunately, they involve adding to the document markup. Marking the first paragraph with a certain class for example:
For sake of Purity and the Separation of Presentation and Markup... No, frankly I don't much care. My motivation for doing this was for a user style sheet, where, of course, I don't have access to the markup. However, I also appreciate the elegance of this trick (mine, and as far as i know, an original):<p class="first>this is a first paragraph</p>
p.first {text-indent: 0;}
p + p {text-indent: 1em;}Using the adjacent sibling operator. Only paragraphs that immediately follow from another is targeted. That means all paragraphs except the first. What's more it even works when paragraphs are interrupted by lists or code sections or an image etc.
div > p:first-child { text-indent: 0;}which is patently hideous.
Labels: css, hack, typography