On 5 Sep 2006, at 19:19, Designer wrote:


I'm trying to use:

       #description p:first-line { margin-left : 3em; }

and it refuses to take any notice of me!  However, if I use:

       #description p:first-line { color : #f00; } that works fine.

Can anyone shed any light on this?

According to CSS 2.1:
<http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo>
(final paragraph):
"The :first-line pseudo-element is similar to an inline-level element, but with certain restrictions. The following properties apply to a :first-line pseudo-element: font properties, color property, background properties, 'word-spacing', 'letter-spacing', 'text-decoration', 'vertical-align', 'text-transform', 'line- height',. UAs may apply other properties as well."

So it looks like you can't use "margin" there - or rather, that browsers aren't required to support it.

Cheers,

Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/





*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to