I need help on how to resize images which are used as list items in CSS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I need help on how to resize images which are used as list items in CSS

13th Apr 2021, 6:43 PM
Ssenyonjo
Ssenyonjo - avatar
4 Answers
13th Apr 2021, 6:48 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 3
Great question You cannot do that You cannot resize, or set position BUT!!! You can set "background" instead. Example: ul {list-style-type: none;} li { background: url("listBG.jpg"); background-size: 20px; background-repeat: no-repeat; } I hope it worked Good night👋👋
13th Apr 2021, 8:21 PM
🇮🇱 Radin Masiha 🇮🇱
🇮🇱 Radin Masiha 🇮🇱 - avatar
+ 1
Hi bro
13th Apr 2021, 6:46 PM
Alexander Sokolov
Alexander Sokolov - avatar
- 4
can help with my problem?
13th Apr 2021, 6:47 PM
Alexander Sokolov
Alexander Sokolov - avatar