From the w3c specifications for CSS2 - http://www.w3.org/TR/REC-CSS2/selector.html#first-line-pseudo

"The :first-line pseudo-element is similar to an inline-level element, but with certain restrictions. Only the following properties apply to a :first-line pseudo-element: font properties, color properties, background properties, 'word-spacing', 'letter-spacing', 'text-decoration', 'vertical-align', 'text-transform', 'line-height', 'text-shadow', and 'clear'."

Hence, you cannot apply margin here.

Designer wrote:
Hello everyone,

I think I'm cracking up!

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?  The full CSS file is at:

   http://www.rhh.myzen.co.uk/rhh2007/locations/css/fulldetails.css

and an example of it NOT working can be seen here:

   http://www.rhh.myzen.co.uk/rhh2007/locations/trevone/westwinds.php?house=Westwinds

I just can't see what's wrong - too tired, too old . . . :-)


Thanks!


--
Navjot Pawera
www.navjotpawera.com

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

Reply via email to