Hi,

Well your code in the examples you've given is inconsistent.  In the first
post you open a <p> tag but close with </P>.  If you're using XHTML, it is
case sensitive and does not see these two as connected.  Also in the CSS
example, you've put a capital P.  This may be the problem.  Try changing it
to:

<p class="dialogue">Blah blah blah</p>

p.dialogue:before {
        content: "- ";  /* Note that the browser will not convert an Ascii
code, just write the literal content you want. */
}

This works in Firefox and Opera as far as I can tell.

Iain

------------------
Iain Gardiner
http://www.firelightning.com


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of ckimedia
Sent: 23 June 2004 19:43
To: [EMAIL PROTECTED]
Subject: Re: [WSG] :before Pseudo Element


Hi,

Target browsers include Safari, Mozilla, Firefox, the standards posse 
and perhaps IE 5 mac. As for the CSS


P.dialogue:before {content: "&mdash; "}

On Wednesday, June 23, 2004, at 11:06 AM, Iain Gardiner wrote:

> Do you have any more background than this?  The CSS you are applying,
> for
> example.  Letting us know which browsers you are using would also 
> help.  If
> you are using IE, then that's the problem.  Its support for generated
> content is pitiful if not non-existant.
>
> Iain
>
> ------------------
> Iain Gardiner
> http://www.firelightning.com
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> On Behalf Of ckimedia
> Sent: 23 June 2004 17:13
> To: [EMAIL PROTECTED]
> Subject: [WSG] :before Pseudo Element
>
>
> Hi,
>
> I a bit of a pickle, I attempting to use the :before Pseudo element to 
> insert an en dash before a <p class="dialogue">blah blah</P>,
> but have ran aground, wisdom welcome.
>
> C
>
> *****************************************************
> The discussion list for http://webstandardsgroup.org/
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
> *****************************************************
>
>
>
> *****************************************************
> The discussion list for http://webstandardsgroup.org/
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
> *****************************************************
>

*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
***************************************************** 



*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
***************************************************** 

Reply via email to