Hello!
How do I remove the white space within the borders of an element?
I have tried setting padding and margin to 0 in CSS this doesn’t seem to work. I would like a border that fits around the below code, and does not extend to the sides as shown in the image.
HTML code:
<div id="price">EUR 27.00</div>
CSS code:
#price {
text-align: center;
display: block;
border: 2px solid black;
padding: 0px;
margin: 0px;
Thanks in advance!