Reputation: 537
I have an image and i want to make a square inside it, however it draws a rectangle.
p::after {
content: "";
background-color: red;
padding: 5px;
/*line-height: 0px;*/
}
<p>That is not a square -></p>
Upvotes: 0
Views: 633
Reputation:
display:inline-block
will solve the problem
p::after {
content: "";
display:inline-block;
background-color: red;
padding: 5px;
/*line-height: 0px;*/
}
<p>That is a square -></p>
Upvotes: 2