Next.js Discord

Discord Forum

Make Link cover whole parent

Answered
Saltwater Crocodile posted this in #help-forum
Open in Discord
Saltwater CrocodileOP
How can I cover whole div parent of my Link?
w-full and h-full doesnt work!
Answered by averydelusionalperson
hmm, just remove the div tag?
View full answer

27 Replies

I don't think you can cover the whole link, cause link is yKnow text, not a div container
I tried different methods few weeks ago, didn't work
May I ask why tho?
Saltwater CrocodileOP
my goal is to have a clickable block (see on left top it would count as link click)
or do i just use router?
or redirect
My Edu?
Saltwater CrocodileOP
any of the navbar buttons
its hovered but not clickable
It's wrapped in link?
Saltwater CrocodileOP
its like this currently
hmm, just remove the div tag?
Answer
Saltwater CrocodileOP
it works
damn
im pretty sure it didnt before!
lmao
I did magic
🌟
Saltwater CrocodileOP
yep
🫡
Saltwater CrocodileOP
ty
no worries, it was pretty much 6 words TBH lol
Asiatic Lion
@Saltwater Crocodile Is there anyway to wrap the className of Link with {}?
@Asiatic Lion <@466650807996252162> Is there anyway to wrap the className of Link with {}?
It's prolly better if you open a new thread, instead of asking your question in another person's thread
@Asiatic Lion <@466650807996252162> Is there anyway to wrap the className of Link with {}?
Asiatic Lion
create a new thread with this? 😁
yes
but don't tag the OP