Tad Thorley

creative commons license rss feed comments feed powered by Howex valid xhtml Add to Technorati Favorites

Using Pseudoselectors Together

Now that I have my new blog up and running, it is time to start customizing it to my liking. In my previous blog I liked having the first line of the first paragraph bolded and I've decided to add it to this blog's style. The secret is to use pseudoselectors together to get what you want like so:

1
2
3
.entrybody>p:first-child:first-line {
  font-weight: bold;
}

For those of you who use Wordpress or Mephisto, you can paste this right into your stylesheet.