Sometimes, we want to remove ul indentation with CSS.
In this article, we’ll look at how to remove ul indentation with CSS.
How to remove ul indentation with CSS?
To remove ul indentation with CSS, we set padding to 0.
For instance, we write
ul {
padding: 0;
list-style-type: none;
}
to set the padding of the ul to 0.
And we set list-style-type
to none
to hide the bullets.
Conclusion
To remove ul indentation with CSS, we set padding to 0.