Closed aiguoli closed 3 years ago
Maybe some other CSS overriding it? Here's an example with your code, which displays the value correctly.
I think @atresnjo is right. To debug this issue. You need to compare the style from your inspect element with the example @atresnjo made. It might be a style from a container or another element. Something like a font size, line height, etc.
I'm closing this issue since it's not a bug from daisyUI but feel free to continue the conversation. I would be glad to help if I get more details about your code.
Thanks for your answer. But it's so wired that I copy my code into play page, it works perfect. ๐ญ
code: https://play.tailwindcss.com/NDaYmAmRQr
play:
local:
local(delete select-sm
):
@aiguoli Can you try adding a py-0
class to <input>
?
Based on what I see on the screenshot, it looks like there's a padding. I added a py-2
class and the result became similar to yours.
You need to check inspect element to see if there's a padding style for input
and find the source of it.
I also see a blue border that shouldn't be there (for this theme) so I think your page has another css file affecting your input.
it works perfectly, thank you so much!!!๐
I had this problem because the '@tailwindcss/forms' plugin was also loaded.
hello, my code is
but it displayed like this, the
option
is incomplete.