cowboyandy Posted December 8, 2010 Report Share Posted December 8, 2010 I'm driving myself crazy trying to figure out how to set css for a specialized list using an image and indentation. The html mess I have can be seen here: www.renttexashillcountry.com/texasisms/ I have the following in my css, and it's working fine for a couple of lists (although I'm still trying to fine-tune the css). ul { list-style-type:none; padding:0px; margin:0px;} ul li { color:#aa4400;} There must be some way to set code into the css that will give me the same results as what the page shows for the Texasisms list. I've tried using an html nested list, but it simply refers to the css above and is defeated. How can I use css to accomplish this and get rid of all the mess I have going on - and still get the proper indentations? Or should I set up a table - I have several of those being used in the site. Any guidance would sure be appreciated! Cowboy Quote Link to comment Share on other sites More sharing options...
falkencreative Posted December 8, 2010 Report Share Posted December 8, 2010 Just add a class to the unordered list: <ul class="classname"> <li>list item...</li> </ul> and then within the css: .classname {} .classname li {} Quote Link to comment Share on other sites More sharing options...
Andrea Posted December 8, 2010 Report Share Posted December 8, 2010 Here's a little how-to: http://www.csstutorial.net/2010/03/styling-different-links-differently-with-css/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.