CSS Quick Tip: Custom icon for a list-item

This is just a quick tip for customizing li’s in your html. This is a somewhat beginner-level technique, so most of you intermediate to advanced CSS people will already know this technique.

First we will start with the html code… create an unordered list with a few list items, like so…


<ul>
<li>This is your list item</li>
<li>and another</li>
<li>One more for giggles</li>
</ul>

I have already created our custom icon in photoshop that we are going to use.. customli

Now, what you will want to do is setup some basic css for the li, like so…


li {
list-style-image:url(customLI.gif);
}

Make sure that your image url for the list style is setup as the correct path… since my html file and image file are on the same level, I just need to reference the name of the image. It is standard practice to create an images folder for all of your graphics, if you did that, your url would look like url(images/customLI.gif

Without any other styling applied to your UL or LI the result would be something like this…

liscreencap

If you would like the source files, you can grab them here

I hope you enjoyed this quick CSS tutorial! Be on the lookout for more to come!

109 Responses to “CSS Quick Tip: Custom icon for a list-item”

  1. RICHARD Says:


    CheapTabletsOnline.com. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.Best quality drugs. No prescription pills. Buy pills online

    Buy:VPXL.Cialis Professional.Zithromax.Maxaman.Super Active ED Pack.Soma.Cialis.Viagra Super Active+.Viagra Super Force.Levitra.Viagra Professional.Viagra Soft Tabs.Viagra.Propecia.Cialis Soft Tabs.Cialis Super Active+.Tramadol….

  2. SERGIO Says:


    CheapTabletsOnline.Com. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. High quality drugs. Order drugs online

    Buy:Synthroid.Actos.Accutane.Human Growth Hormone.100% Pure Okinawan Coral Calcium.Lumigan.Valtrex.Zovirax.Mega Hoodia.Prevacid.Retin-A.Zyban.Prednisolone.Arimidex.Nexium.Petcam (Metacam) Oral Suspension….

  3. ARTURO Says:

    Abilify@official.site” rel=”nofollow”>.

    Buywithout prescription…

  4. Alexander1 Says:

    buy@aloe.vera.gel” rel=”nofollow”>…

    Need cheap generic VIAGRA?…

  5. TERRENCE Says:

    Purchase@Discount.Coral.Calcium” rel=”nofollow”>..

    Buyit now…

  6. SALVADOR Says:

    Cheap@Coral.Calcium.Online” rel=”nofollow”>..

    Buygeneric meds…

  7. EDUARDO Says:

    Buy@Cheap.Abana” rel=”nofollow”>..

    Buygeneric pills…

  8. BRANDON Says:

    Buy@Discount.Abana” rel=”nofollow”>..

    Buyno prescription…

  9. PERRY Says:

    Purchase@Abilify.Online” rel=”nofollow”>…

    Buywithout prescription…

  10. ROY Says:

    Buy@Generic.Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>…

    Buywithout prescription…

  11. RUSSELL Says:

    Purchase@Discount.Acai” rel=”nofollow”>..

    Buywithout prescription…

  12. SALVADOR Says:

    Buy@Acai.Without.Prescription” rel=”nofollow”>…

    Buynow…

  13. EDUARDO Says:

    Buy@Cheap.Coral.Calcium” rel=”nofollow”>.

    Buynow it…

  14. RONALD Says:

    Buy@Cheap.Coral.Calcium” rel=”nofollow”>…

    Buygeneric meds…

  15. DUSTIN Says:

    Cheap@Coral.Calcium.Online” rel=”nofollow”>..

    Buygeneric drugs…

  16. LEWIS Says:

    Buy@Abilify.Online” rel=”nofollow”>..

    Buynow it…

  17. MIKE Says:

    Buy@Cheap.Coral.Calcium” rel=”nofollow”>.

    Buydrugs without prescription…

  18. LESLIE Says:

    Buy@Cheap.Abilify” rel=”nofollow”>…

    Buygeneric pills…

  19. DENNIS Says:

    Buy@Acai.Online” rel=”nofollow”>.

    Buyit now…

  20. LANCE Says:

    Buy@Acai.Online” rel=”nofollow”>…

    Buyno prescription…

  21. FELIX Says:

    Buy@Discount.Acai” rel=”nofollow”>…

    Buyit now…

  22. ALFRED Says:

    Order@Discount.Acai” rel=”nofollow”>…

    Buynow…

  23. VICTOR Says:

    Order@Acai.Without.Prescription” rel=”nofollow”>.

    Buygeneric drugs…

  24. RICK Says:

    Order@Energy.Boost.Online” rel=”nofollow”>.…

    Buygeneric drugs…

  25. MATHEW Says:

    Purchase@Cheap.Energy.Boost” rel=”nofollow”>.…

    Buyno prescription…

  26. BOB Says:

    Order@Accupril.Online” rel=”nofollow”>.…

    Buygeneric drugs…

  27. BILLY Says:

    Get@Accupril.Online” rel=”nofollow”>.…

    Buygeneric drugs…

  28. BYRON Says:

    Buy@Discount.Accutane” rel=”nofollow”>.…

    Buynow it…

  29. WILLIAM Says:

    Buy@Aciphex.Online” rel=”nofollow”>.…

    Buygeneric pills…

  30. ADAM Says:

    Buy@Generic.Aciphex.Without.Prescription” rel=”nofollow”>.…

    Buyno prescription…

  31. ARTHUR Says:

    Buy@Actonel.Without.Prescription” rel=”nofollow”>.…

    Buygeneric meds…

  32. DARYL Says:

    Purchase@Generic.Actonel.35mg” rel=”nofollow”>..

    Buygeneric drugs krg…

  33. CLIFTON Says:

    Cheap@Generic.Actonel.35mg” rel=”nofollow”>..

    Buygeneric meds qmo…

  34. VICTOR Says:

    Order@Actos.Online” rel=”nofollow”>..

    Buygeneric pills zdg…

  35. RAY Says:

    Order@Cheap.Actos” rel=”nofollow”>.

    Buygeneric drugs zfk…

  36. LAWRENCE Says:

    Get@Actos.Online” rel=”nofollow”>..

    Buywithout prescription dyo…

  37. MARCUS Says:

    Buy@Advair.Online” rel=”nofollow”>..

    Buynow it vhx…

  38. LLOYD Says:

    Cheap@Coral.Calcium.Online” rel=”nofollow”>…

    Buywithout prescription xiu…

  39. RONALD Says:

    Buy@Acai.Without.Prescription” rel=”nofollow”>.

    Buygeneric drugs itj…

  40. CHRISTOPHER Says:

    Buy@Energy.Boost.Online” rel=”nofollow”>..

    Buynow it cey…

  41. MITCHELL Says:

    Purchase@Energy.Boost.Online” rel=”nofollow”>..

    Buydrugs without prescription faj…

  42. BRUCE Says:

    accupril@and.muscle.pain” rel=”nofollow”>…

    Buynow it zdg…

  43. BRYAN Says:

    Buy@Cheap.Accupril” rel=”nofollow”>.

    Buygeneric drugs nih…

  44. GERARD Says:

    Get@Accupril.Online” rel=”nofollow”>..

    Buyit now irl…

  45. VINCENT Says:

    Cheap@Accutane.10mg.20mg” rel=”nofollow”>.

    Buyit now ojb…

  46. JASON Says:

    Buy@Cheap.Aciphex” rel=”nofollow”>…

    Buywithout prescription ccw…

  47. JOHNNY Says:

    Order@Discount.Aciphex” rel=”nofollow”>…

    Buygeneric meds svb…

  48. MARION Says:

    Cheap@Aciphex.Online” rel=”nofollow”>..

    Buyno prescription gdt…

  49. DALE Says:

    Buy@Generic.Aciphex.Without.Prescription” rel=”nofollow”>…

    Buyit now knc…

  50. DWIGHT Says:

    Buy@Generic.Actonel.Without.Prescription” rel=”nofollow”>.

    Buygeneric drugs ouw…

  51. RICARDO Says:

    Buy@Cheap.Advair” rel=”nofollow”>.

    Buygeneric drugs hwi…

  52. FRED Says:

    Purchase@Advair.Online” rel=”nofollow”>..

    Buyno prescription jui…

  53. VINCENT Says:

    Purchase@Generic.Advair” rel=”nofollow”>.

    Buynow it lmg…

  54. BERNARD Says:

    Cheap@Advair.Without.Prescription” rel=”nofollow”>…

    Buyit now sge…

  55. MILTON Says:

    Buy@Generic.Advair.25mcg50mcg.25mcg125mcg.25mcg250mcg.50mcg500mcg.50mcg100mcg.50mcg250mcg” rel=”nofollow”>..< …

    Buydrugs without prescription hak…

  56. NICK Says:

    Buy@Generic.Advair.25mcg50mcg.25mcg125mcg.25mcg250mcg.50mcg500mcg.50mcg100mcg.50mcg250mcg” rel=”nofollow”>..< …

    Buyno prescription lka…

  57. ALVIN Says:

    Buy@Cheap.Aggrenox” rel=”nofollow”>..

    Buygeneric meds dxy…

  58. BRAD Says:

    can@you.take.aciphex.and.nexium.at.the.same.time” rel=”nofollow”>..

    Buygeneric pills…

  59. ANGELO Says:

    aciphex@cancer.buy” rel=”nofollow”>..

    Buygeneric drugs…

  60. DARRYL Says:

    actonel@and.heart.irregularities” rel=”nofollow”>..

    Buyno prescription…

  61. MELVIN Says:

    aldactone@kidney.problems” rel=”nofollow”>…

    Buygeneric drugs…

  62. BRYAN Says:

    can@you.get.acai.berries.in.the.grocery.store” rel=”nofollow”>.

    Buydrugs without prescription…

  63. CLINTON Says:

    actonel@and.dvt” rel=”nofollow”>.

    Buygeneric meds…

  64. KARL Says:

    amalaki@fruit.buy” rel=”nofollow”>…

    Buyno prescription…

  65. JULIUS Says:

    ..

    Buyit now…

  66. TYLER Says:

    buy@real.strong.armour” rel=”nofollow”>.

    Buydrugs without prescription…

  67. EVERETT Says:

    levaquin 500mg

    Buy_no prescription…

  68. ALFREDO Says:

    mike divorce cancer tiffany

    Buy_generic pills…

  69. ALBERT Says:

    financial aid for alzheimer’s

    Buy_without prescription…

  70. TODD Says:

    heart worm medication

    Buy_no prescription…

  71. ANTONIO Says:

    blood pressure medications

    Buy_now it…

  72. JEFFERY Says:

    red wine and lipitor

    Buy_no prescription…

  73. BARRY Says:

    hepatitis b shot

    Buy_it now…

  74. DAN Says:

    drug trafficking in latin america

    Buy_drugs without prescription…

  75. JAY Says:

    effexor xr 75

    Buy_generic pills…

  76. ADAM Says:

    genital erection

    Buy_now it…

  77. DENNIS Says:

    low fat diets history

    Buy_drugs without prescription…

  78. LAWRENCE Says:

    permanent removal of adult acne scars

    Buy_generic meds…

  79. JULIO Says:

    hives rash from coming off prednisone

    Buy_generic drugs…

  80. KENNY Says:

    enhancement drugs

    Buy_no prescription…

  81. TERRENCE Says:

    drug test company

    Buy_without prescription…

  82. JACOB Says:

    social etiologies for patients with schizophrenia

    Buy_it now…

  83. BILL Says:

    what is metoprolol succinate used for

    Buy_it now…

  84. STEVE Says:

    zocor and ms

    Buy_it now…

  85. CASEY Says:

    adderall then tylenol pm

    Buy_generic drugs…

  86. NEIL Says:

    abdominal pain lutenizing hormone

    Buy_generic drugs…

  87. SHAWN Says:

    ic tramadol hcl 50 mg

    Buy_generic meds…

  88. ERIC Says:

    epson salt and lemon juice diet

    Buy_generic pills…

  89. KENT Says:

    asthmatic inhaller mask for children

    Buy_it now…

  90. BRYAN Says:

    l91 energizer e2 lithium aa cells

    Buy_generic drugs…

  91. JOEY Says:

    how to buy glucose meter

    Buy_generic meds…

  92. JEREMY Says:

    skin cancer foundation australia

    Buy_generic drugs…

  93. NATHAN Says:

    hot dog hospital diet substitutions

    Buy_generic drugs…

  94. CHRIS Says:

    clinical features of sickle cell disease

    Buy_generic drugs…

  95. JEFFERY Says:

    depression medcine xr

    Buy_drugs without prescription…

  96. LEE Says:

    allergic reaction to topical miconazole

    Buy_generic meds…

  97. CHARLIE Says:

    school age adhd self absorbed

    Buy_now it…

  98. FREDDIE Says:

    twin pregnancy obstetrician specialist dallas

    Buy_drugs without prescription…

  99. PATRICK Says:

    psychotic depression and philadelphia

    Buy_generic meds…

  100. ARTURO Says:

    shampoo for people with dog allergies

    Buy_now…

  101. IAN Says:

    boniva and bone thinning and breaks

    Buy_now it…

  102. RAFAEL Says:

    scabies in dogs help

    Buy_generic drugs…

  103. ALFRED Says:

    herbals for pregnancy

    Buy_drugs without prescription…

  104. REGINALD Says:

    free fast diet tips

    Buy_generic meds…

  105. WESLEY Says:

    diet secrets for models

    Buy_now it…

  106. JEREMY Says:

    best@medicare.plan.d.for.nexium.40.mg” rel=”nofollow”>..

    Buygeneric meds…

  107. HARRY Says:

    infant@prevacid.dose” rel=”nofollow”>.

    Buygeneric drugs…

  108. JULIO Says:


    BUY CHEAP INDIAN DRUGS : -==== Anti Depressants Drugs ====-

    Purchase Unique Pills Now!…

  109. harvey Says:

    theatricals@invalidated.druncke” rel=”nofollow”>.…

    thanks!…

Leave a Reply