You can’t select the first line of a block element with CSS in IE6. You can do this in all other current browsers.
For example:
blockquote.firstline-example p:first-line{
font-weight:bold;
}
Looks like:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
4 replies on “:first-line”
That doesn’t work in FireFox 3 either.
@phil: Thanks, WordPress added another element, so my embedded selector wasn’t working in Firefox (though it was working in Safari… yay inheritance).
Phil,
Yes it does. I’m looking at it.
@A: Well, to be fair to Phil, my example was slightly busted thanks to WordPress.