user2456566
user2456566

Reputation: 3

Unable to get custom bullet image to show right of list item

I'm trying to create a LIST with my bullets being check marks just to the right of each list item.

The list needs to be in the CENTER of page.

(I would have posted a graphic example but don't have rep points).

THIS IS WHAT I WANT IN THE CENTER OF THE PAGE.

LIST ITEM 1 ✔
LIST ITEM 2 ✔
LIST ITEM 3 ✔

Right now, my list IS in the center of the page, but the check marks are all the way to the right side of the page.

THIS IS WHAT I HAVE NOW (and do not want).

LIST ITEM 1                                                              ✔
LIST ITEM 2                                                              ✔
LIST ITEM 3                                                              ✔

      <div class="welcome-text">

          <div class="welcome-text1">
                <ul class="certs">
                    <li>Licensed</li>
                    <li>bonded</li>
                    <li>insured</li>
                </ul>
          </div>

          <div class="welcome-text2">
                The BEST Choice For Quality Termite Pest &amp; Lawn Care! Protecting your home starts with a free inspection.
          </div>

  </div>

Here is the CSS for the above:

.welcome-text{
    padding-top:30px;
    margin:0 auto;
    width:80%;
    overflow:hidden;

}

.welcome-text1{
    color:#333333;
    font-family:Open Sans Condensed;
    text-transform:uppercase;
    font-size:24px;
    line-height:30px;
}

.welcome-text1 ul{
    list-style-type: none;
    margin-left: 0;
}

.welcome-text ul li{
    display:block;
    background-color:#CCC;
    background: url(images/checkmark.png) right center no-repeat;

}

.welcome-text2{
    color:#777;
    font-family:tahoma;
    font-size:18px;
    line-height:20px;
}


.certs li{
    list-style: none;
    padding:3px;
    margin:0;

}

Any ideas?

TIA

Upvotes: 0

Views: 816

Answers (4)

Paul Shan
Paul Shan

Reputation: 614

If you just need your bullets to appear in the right side, you can simply use

<ul dir="rtl" type="disc">

Then just change the bullets by images using list-style-type and all... I think it will solve your problem.

Upvotes: 1

Paul Shan
Paul Shan

Reputation: 614

Just give a width to your ul tag, and it will be done

Upvotes: 0

G-Cyrillus
G-Cyrillus

Reputation: 105853

you can use pseudo-element to show your marks http://codepen.io/gcyrillus/pen/IJtzi

Actually, just a padding on your image if it stans in HTML) , and this is it

Upvotes: 0

zazvorniki
zazvorniki

Reputation: 3602

Try putting a width on the ul.

.welcome-text1 ul{
  width:50%;
}

http://jsfiddle.net/aL3Ap/

Upvotes: 0

Related Questions