How to extend the box of a list over it's container | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to extend the box of a list over it's container

From the attached code, I want the background of each list item to extend over the container. As per I want each row to be completely pink and not have part of it as blue. The part where the original numbers used to be is blue, but I want that part to be pink. So how do I extend the box for the list to cover the width of the ol. https://code.sololearn.com/Wr4a7Aruve39/?ref=app

3rd Sep 2022, 4:31 PM
Sekiro
Sekiro - avatar
4 Answers
+ 3
ol { padding: 0; }
3rd Sep 2022, 8:56 PM
SoloProg
SoloProg - avatar
+ 2
ol li { *margin:0.5em 0; /* comment it */ }
3rd Sep 2022, 4:45 PM
SoloProg
SoloProg - avatar
+ 1
SoloProg it worked. Thanks a lot.
4th Sep 2022, 3:49 AM
Sekiro
Sekiro - avatar
0
SoloProg I commented it but it is still the same
3rd Sep 2022, 5:04 PM
Sekiro
Sekiro - avatar