Command -dynamically- to a 'first-letter'...

admin

Administrator
Staff member
Hello !

i'd like to command something (when i want) to a 'first-letter' (for example : make it blink). Do you see how i could do it ?

Thanx.<script language="text/css">
<!--
P{text-effect: blink;}
-->
</script>

<p>
This shall blink!
</p>


I'm not quite sure what you are looking for....
If that's it, *wrong forum*Thank you, drythirst, for answering !

* You are right : i am not in the right forum.

* You are right : that's not what i am looking for :
- i want to command to the first letter, and not to the entire paragraph;
- i want to command to the first letter dynamically (it is not supposed to work all the time long).Maybe just do the first letters in animated GIF format? I think i've seen something like this from Expage's page builder. (No I do not use page builders!)I moved this thread to the correct forum. Also, take a look at <!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/selector.html#first-letter.Originally">http://www.w3.org/TR/REC-CSS2/selector. ... Originally</a><!-- m --> posted by pyro
I moved this thread to the correct forum. Also, take a look at <!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/selector.html#first-letter">http://www.w3.org/TR/REC-CSS2/selector. ... rst-letter</a><!-- m -->.

This command does not work on IE however (afaik)Originally posted by pawky
This command does not work on IE however (afaik)

Nothing works on IE however (afaik)It works in IE 6 (at least)...Originally posted by pyro
It works in IE 6 (at least)...

I stand corrected. I just tested it and it does. What does not work in IE is the :before & :after pseudo-elements which i was confusing. Sorry bout that :)Thank you for your contributions !

The problem is not the changing : the .style.anyproperty=something method is OK for that.

The problem is to reach the pseudo-class first letter (without putting anymore tag in the text, of course !) with something like the getElementsByTagName('p:first-letter') command.
 
Back
Top