JSFiddle - React, Tailwind, and code Playground
HTML
The black background should not extend all the way to the left and right boundaries of parent element:
<div class="wrapper">
<p>Lorem ipsum dolorsit amet</p>
</div>
<br><br>
This is what I want, but without having to add the <br> tag:
<div class="wrapper">
<p>Lorem ipsum<br> dolorsit amet</p>
</div>
CSS
.wrapper {
border: 1px solid red;
text-align: center;
width: 450px;
}
p {
display: inline-block;
margin: 0;
padding: 10px;
font: 50px arial;
color: white;
background: black;
}