Some help with styling a list in CSS
-
Okay,
I have a set a style for my generic ul list to show an image for the bullet points. I’m needing to have a second one that will let me have a different image for each list item. Below I’m attaching my current CSS and HTML for the second list. Can someone please tell me what I’m doing wrong. My images won’t show up for my second list.CSS
.box { padding-top: 5px; } .services-offered ul.services { margin: 0; padding: 0; float: left; width: 900px; list-style-type: none!important; background-image:none!important; } .services-offered ul.services li { /* width: 280px; */ width: 430px; padding-left: 10px; padding-right: 10px; list-style-type: none!important; background-image:none!important; } .services-offered ul.services li.software { background-image: url('./images/Software.png')!important no-repeat; padding-left: 85px; padding-bottom: 35px; }
HTML
<div class="box services-offered"> <ul class="services"> <li class="software"> <strong>Add/Remove Software</strong> Have a piece of software you needed installed or a pesky one that will not uninstall???</li> <li class="software"> <strong>Add/Remove Software</strong> Have a piece of software you needed installed or a pesky one that will not uninstall???</li> <li class="software"> <strong>Add/Remove Software</strong> Have a piece of software you needed installed or a pesky one that will not uninstall???</li> <li class="software"> <strong>Add/Remove Software</strong> Have a piece of software you needed installed or a pesky one that will not uninstall???</li> </ul> </div>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Some help with styling a list in CSS’ is closed to new replies.