[RESOLVED] absoule beginner question: how to use style
hey all.
i want to do simple thing
change font style (color,face,...)
i read that <font> is deprecated, and i should use style
the problem is that inline style (from what i read) can be used only in tag
now let say i have one word - NO
i want - N - to be in green color
and - O - in blue color
how can i do this with style tag
(i know how to it with font tag but it's deprecated)
thanks in advanced.
Re: absoule beginner question: how to use style
Re: absoule beginner question: how to use style
You could use the :first-letter pseudo class:
Code:
<style type="text/css">
p{color:blue;}
p:first-letter{color:green;}
</style>
<p>NO</p>
Re: absoule beginner question: how to use style
thank you both
the link helped to find the tag i was needed
all tags i tried inserted CR <br> at the end of them
but this tag - span - didn't
and this is exactly what i was looking for
thank you very much both