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
I'm not sure what your expected result is? What do you want it to look like?
like this
but white color is causing problem
Try using the fieldset or legend elements:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend
@.talhamustafa see this page to get a idea : https://css-tricks.com/how-to-add-text-in-borders-using-basic-html-elements/
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