Next.js Discord

Discord Forum

tailwind css properties not displaying on Link element

Answered
New Guinea Freshwater Crocodile posted this in #help-forum
Open in Discord
New Guinea Freshwater CrocodileOP
having an issue with the Link element from next not showing the css properties attached to it
Answered by Ray
yes you need the border class
View full answer

14 Replies

the border-width is 0 by default
New Guinea Freshwater CrocodileOP
oh shoot youre right! I hadn't considered that. @Ray appreciate that.
@Ray i added border-solid and it didn't actually do anything tailwind docs don't seem to mention the need for an actual implementation of a borders pixelation to create the border effect.
I think you need border-blue-400 border-solid border
the border style should be solid by default so it can be omitted
New Guinea Freshwater CrocodileOP
border-solid and border-blue-400
yes you need the border class
Answer
to set the border-width
New Guinea Freshwater CrocodileOP
that did it
thank you 🙂
border-solid only set the border-style
np