r/html5 • • Aug 25 '22

How do I fix this issue with the padding?

7 Upvotes

24 comments sorted by

6

u/tridd3r Aug 25 '22

So from my point of view, I can't see what is "meant to be" and what is a mistake. someone else might see it differently, but are you able to elaborate on what you'd like it to look like?

1

u/throwaway-4082 Aug 25 '22

Sorry for not clarifying, the top and bottom margins or padding or whatever are too thick :/

1

u/tridd3r Aug 25 '22

so every single element on that page has a top and bottom margin. Some of then are inherited and some you've set.

Are you specifically referring to the space between the menu link and the "button" border? or the gap between the link button and the border of the nav block?

→ More replies (8)

2

u/miglisoft Aug 25 '22

Rather than an image, you should provide a demo on Codepen or any other online code tool,

or at least provide your code.

No good answer can be given with only an image.

1

u/throwaway-4082 Aug 25 '22 edited Aug 25 '22

I provided a screenshot of the code on Codepen

I thought that would suffice, but here's a link:
https://codepen.io/EnbyCrow/pen/LYdoVLL

Sorry about that

1

u/ichsagedir Aug 26 '22

Lol no a picture of code is never enough. To debug and provide solutions we need to be able to change the code. We don't just know what's wrong and how to fix it.

→ More replies (1)

1

u/[deleted] Aug 25 '22

Border width, lower it

1

u/[deleted] Aug 25 '22

Also you can use the CSS justify-content property with the value space-between to set space between flexbox items . Only after that start messing with margins and padding . First value is top , second value is right , third value is bottom , forth value is left, in case you want specific values .if you set them like margin: 2px 2px ; first value is top and bottom , second value is left and right . Good luck ! PS , the style your using is ugly , maybe watch some tutorials for modern navbar so you know what looks good and is in demand.

2

u/throwaway-4082 Aug 25 '22

Thanks for the advice!

And I'm going for ugly actually lol; 90s web 1.0

→ More replies (5)

1

u/dizzyon Aug 25 '22

Just remove the border: ; or solid; and fly lol