How do I set a lable's background color to highlight ONLY the text, not the padding or spaces before and after the text?
I've tried the following but it highlight the space before the label
![<style>
.auto-style1 {
width: 18.4em;
background-color:red;
}
.input1[type="text"]{
width: 40em;
}
</style>
<p>
<label class="auto-style1" for="txtName">NAME:</label>
<input class="input1" type="text" id="txtName" name="tbName" />
</p>][1]
[1]: /answers/storage/attachments/175460-label.png
