Link to home
Start Free TrialLog in
Avatar of MariaHalt
MariaHaltFlag for United States of America

asked on

ordered list with italic type

I have minimal html experience.  Just need to update some text in a database field with some html tags to render an ordered list.  

The list is deeply nested.  I'm using <ol type="where my list type is equal to one of the following: A, 1, a, i".  The one section requires italic lower case type.  For example:

a. Monday
b. Tuesday
c. Wednesday

No css.  Silly question, but how do I get the italics in there?  What's the best way to approach this?

Thank you.
Avatar of Dan Craciun
Dan Craciun
Flag of Romania image

You can do it like this:
<ol>
<li style="font-style:italic;"><span style="font-style:normal;">Monday</span></li>
<li style="font-style:italic;"><span style="font-style:normal;">Tuesday</span></li>
<li style="font-style:italic;"><span style="font-style:normal;">Wednesday</span></li>
</ol>

Open in new window

HTH,
Dan
Avatar of MariaHalt

ASKER

Hi Dan,
Thank you for responding so quickly.  I just tried it.  It's close!  It rendered an italic number, not an italic lower case letter:

1. Monday
2. Tuesday
3. Wednesday

Any tweak I can make to get the lower case letter?
ASKER CERTIFIED SOLUTION
Avatar of Dan Craciun
Dan Craciun
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ah!  That did it.  Thank you very much!
Glad I could help!