text in border

i do not want to have weired background color for my text in border .but if i do not add it the boder shows how can i solve this problem"https://play.tailwindcss.com/3P85V7NKhw?file=css
Tailwind Play
Tailwind Play
An advanced online playground for Tailwind CSS that lets you use all of Tailwind's build-time features directly in the browser.
5 Replies
Jochem
Jochem9mo ago
I'm not sure what your expected result is? What do you want it to look like?
Moni
Moni9mo ago
like this
No description
Moni
Moni9mo ago
but white color is causing problem
Joao
Joao9mo ago
Try using the fieldset or legend elements:
<fieldset>
<legend>Cantidad</legend>
<label for="cantidad">€</label>
<input id="cantidad" name="cantidad" />
</fieldset>
<fieldset>
<legend>Cantidad</legend>
<label for="cantidad">€</label>
<input id="cantidad" name="cantidad" />
</fieldset>
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend
roelof
roelof9mo ago
Preethi
CSS-Tricks
How to Add Text in Borders Using Basic HTML Elements | CSS-Tricks
Some HTML elements come with preset designs, like the inconveniently small squares of elements, the limited-color bars of