It drives me crazy when I see that next line coming under the Bullet point. Here, margins and paddings are not very helpful. The text-indent property with minus value helps us to get the next lines properly indented -
.className li{
list-style-type: disc;
list-style-position: inside;
padding: 10px 0 10px 20px;
text-indent: -1em;
}
.className li{
list-style-type: disc;
list-style-position: inside;
padding: 10px 0 10px 20px;
text-indent: -1em;
}
Aucun commentaire:
Enregistrer un commentaire