May 7, 200917 yr Haven't come across a need to use this one before, but how compatible is the following? #mydiv a:first-letter { font-size: 1.2em; } I've checked various reputable sites, and I get conflicting answers. In particular, does IE like it? Advice please!
May 7, 200917 yr have you tired http://www.quirksmode.org/css/contents.html? It's a very reputable site. Do an in-page search for 'first-letter'. To test browser compatibility see http://www.quirksmode.org/css/firstline.html
May 7, 200917 yr Author Funny enough, yeah I had a look there. I will go on their recommendation... bit worried that other sites suggested no compatibility in IE and I can't test that on a mac relatively quickly. Thanks!
May 11, 200917 yr I used to play with :first-letter. Most browsers do a pretty fair job of it, but Opera (9.1ish) handles it very slightly different to the others and I've never worked out whether Opera's right or not. If your style was applied to the following piece of mark-up: <div id="mydiv"><a href="http://www.webdesignerforum.co.uk">web<span>designer</span>forum.co.uk</a></div> Opera would apply the styles to the W, the D and the F, whereas the other browsers would simply style the W. Like I said, that was around the 9.1 mark... it may have changed since then
Create an account or sign in to comment