Azra Lyndsey
asked on
Using inline styles to change text characteristics mid paragraph
I have a paragraph wrapped with
The trouble is need to change two words in one sentence to red italic.
My code looks something like this:
This, of course doesn't work because I don't have a selector like p in front of "style". The thing is, I'm not sure what selector to use there.
What selector can I use?
The trouble is need to change two words in one sentence to red italic.
My code looks something like this:
<p class="txt">
blah blah blah <style="color: red; font-style: italic;">blah blah</style> blah blah blah
</p>
This, of course doesn't work because I don't have a selector like p in front of "style". The thing is, I'm not sure what selector to use there.
What selector can I use?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.