On 6/26/12 4:33 PM, Kyle Sessions wrote:
On Tue, Jun 26, 2012 at 4:29 PM, Philip TAYLOR <p.tay...@rhul.ac.uk> wrote:

W3C : "The :first-letter pseudo-element applies to block container
elements.

The :first-letter pseudo-element can be used with all such elements that
contain text, or that have a descendant in the same flow that contains
text. A UA should act as if the fictional start tag of the first-letter
pseudo-element is just before the first text of the element, even if
that first text is in a descendant."


Hmm, so no :first-letter on a <span>, since a <span> is not block-level.
That sucks, but at least explains why my code isn't working. Thanks!


Now you know why it's not working - here's how to make it work:
Add this rule:

.title { display: inline-block; }

Works in Safari Mac anyway. :)
--
Cordially,
David



______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to