Solved

CSS Bullet Points

Posted on 2014-01-03
7
364 Views
Last Modified: 2014-01-05
I want the code that has checkmark to have a checkmark for the bullet point.

.text-content ul .checkmark {list-style-image:url("../img/global/checkmark.png"); margin-left:25px;}

.text-content ul {list-style:square; margin-left:25px;}


<ul class="checkmark">
<li></li>
<li></li>
</ul>

<ul>
<li></li>
<li></li>
</ul>

Open in new window

0
Comment
Question by:Computer Guy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39755211
Remove the space
ul .checkmark
becomes
ul.checkmark

I presume .text-content is the class of a container, else remove it.
0
 
LVL 8

Expert Comment

by:Adrian Crabtree
ID: 39755214
Hi audiotech520, instead of using list-style-image, you could try using a background image

.text-content ul .checkmark {
  background: url("../img/global/checkmark.png") no-repeat 0 0;
  padding-left: 25px;
  list-style: none;
}

Open in new window

0
 
LVL 3

Author Comment

by:Computer Guy
ID: 39755240
@cathal

Did not work.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 58

Expert Comment

by:Gary
ID: 39755243
Why post an answer to a question that wasn't asked and then repeat the same mistake that was made.
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39755246
This is your code with the amendment (and a different image as I don't have yours)

http://jsfiddle.net/6Q34f/

I assume you have your css in style tags? i.e.

<style type="text/css">
.text-content ul .checkmark {list-style-image:url("../img/global/checkmark.png"); margin-left:25px;}

.text-content ul {list-style:square; margin-left:25px;}
</style>

Open in new window

0
 
LVL 3

Author Comment

by:Computer Guy
ID: 39755282
Worked!

Also do you know of any any scripts that allow real time code editing, but I can host on my own server? Like the jsfiddle.net
0
 
LVL 58

Expert Comment

by:Gary
ID: 39755289
Firebug for FF is the best you can get.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question