VueJS Navbar
I know space-between would work, but I only want the links spaced sliiiighltly apart, like 20px or so..?
28 Replies
gap: 20px;
^
or, you can use
gap-column: 20px
or something like thatthough that's one of those where I'd probably use
rem
, cause it's visually linked directly to text-only componentsthat's about 1.2rem?
so
gap: 1.25rem;
16px is 1, so 4 is .25close!
very close 😄
I did gap but it didn't affect them, unless I'm targetting the wrong element
gap goes on the flex parent
you have to target the parent
yeah so I had gap: 20px on the wrapper
oh, hm, wait, the parent is nav isn't it
then I can't tell you without seeing the rendered HTML
yes, the parent is the nav
he has it all wrong
though I guess
display: flex; gap:1.25rem;
on nav
should workthe
.wrap
shouldn't have the styles
it should be the nav
the nav
is the one that has the children
that's the one that needs the flex
and that's where the gap goes as wellDo I even need to flex the nav btw? should I not just text-align: center;?
you only flex the nav
remove
.wrapper
, put nav
it should workthat done did diddly did it
thank you gentlemen
you can remove the
.wrapper
elementyeah it's gone
the div is gone?
I removed the div
good
🤣
glad it's fixed, CDL!
it was there for the demo, I just didnt remove it until just now, didnt make any sense to have it in there
but yeah, all good, thanks!
you're welcome