Why when vertically aligning a button element in a div, the element has more vertical space than defined by CSS margins?
P粉080643975
P粉080643975 2023-09-14 18:49:41
0
2
384

My work in progress page on this site

I thought the hardest part of this page would be the scripts and styles used to filter the results, but actually the filtering part works as expected, it's just a styling/alignment issue that confuses me

The part I'm having trouble with is the main content div myBtnContainer - below you can see the gray block for sorting the results, ALL, CURRENT, ACOUSTIC, etc.

As you can see, any button with two lines of text (which wraps automatically) will create extra white space above the button itself - you will see that COLOR CHANGING is the first button where this happens - this will not only Pushing the button down also pushes the starting point of the next line down

I'm very beginner-friendly here - just smart enough to google the parts I need and then copy/paste/edit for trial and error - that's usually enough to cope with, but this time I hit a dead end

Any help would be greatly appreciated

I've looked in Safari's developer tools to see if it's a padding issue, and as far as I know, it's not the issue, but it's probably the only thing I'll be able to troubleshoot (or maybe it's not even...)

P粉080643975
P粉080643975

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!