Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CSS Bullet Points

Posted on 2014-01-03
7
Medium Priority
?
370 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 2000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Suggested Courses

609 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