- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI am looking for a way to use CSS to create two types of ordered lists. One of the lists should have the number underlined, and the other list should surround the number with parenthesis such as (a), (b), (c).
For the underline list I have tried text-decoration: underline and it works, but the problem is that it underlines all the text in the list item. I have tried to prevent this by surrounding the text in the list item with <span id="Ordinary">some text</span> where Ordinary sets text-decoration to none but it does not work. As you can see I have also tried using a specialised p.class.
I can add any text attribute, such as overline or set text color to red but I can't seem to override (subtract) settings made higher up. Is it possible to create a list where the numbering is underlined, but the rest of the text normal?
With regards to the other list, using parenthesis, I have found a code snippet that will accomplish something close to what I want, but it doesn't seem to work in IE7 which is annoying since IE7 is a requirement. Is there any other way, a work around, for IE?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: JulesWebbPosted on 2009-08-02 at 15:44:41ID: 25000941
Below are a couple of solutions for your underlined list.
Let me know how it works for you:-)
Cheers!
Jules
Select allOpen in new window