How can I align my bullet images with my <li> content?

Here is a screenshot to understand. I am trying to find a reliable way to make bullet images vertically aligned with my li content. As you can see, my content is currently too high.

Thank you very much for the flowers ...

http://dl.getdropbox.com/u/240752/list-example.gif

+3
source share
4 answers

Ok, some css code to see how you are currently setting your bullet images would be helpful; -)

"list-style-image" background-image li. . , .

+8

@bryn . , :

#content ul li {
    margin: 3px -20px 3px 20px;
    padding: 0 0 0 0;
    list-style: none;
    background: url(newbullet.gif) no-repeat 0 3px;
}

. . ( - 14 15.) , , , Firefox IE .

+3

You can use something like this in your css ...

#content li{

    list-style-image: url(../images/bullet.gif);

}
+2
source

use a background image, for your li elements, add an addition.

.box li{
    padding-left: 20px;
    background-image: url("img/list_icon.jpg");
    background-repeat: no-repeat;
    background-position: 0px 2px;
    margin-top: 6px;
}
+2
source

Source: https://habr.com/ru/post/1698467/


All Articles