html - Adding special Background Image for <li> -
i'm trying add special jpg image in side of each <li>
but list-style-image:url('sqpurple.jpg');
work bad, how make position of bullet in lift side?
the best way using background-image instead list-style
#ul_id { list-style: none; padding 0px; margin: 0px;} #ul_id li { background-image: url("/content/icons/bullet.png"); // url path location background-position: 1px 2px; // position of background background-repeat: no-repeat; // make background not repeat }
Comments
Post a Comment