Cannot decrease line height in CSS
-
I’m trying to decrease the line height for bulleted paragraphs.
This is the code that I have:.entry-content ul {
list-style: none;
}
.entry-content ul li:before {
content: “\■”;
color: orange;
font-weight: bold;
display: inline-block;
width: 1em;
margin-left: -1.2em;
line-height: 1 !important;
}However, when I try to decrease the line height to 1, it’s not working. My default line height is 2, and it’s set in Customizer > Typography > Body.
I cannot go below 2 no matter what I do.
I’ve tried using the display:block, but then the bullet list does not look in line with the text.
How can I make the line height lower than what’s set in the Customizer, for this specific div container?
The topic ‘Cannot decrease line height in CSS’ is closed to new replies.
