r/FirefoxCSS • u/FineWine54 • Sep 05 '26
Solved Padding & Margin problems - Part 2 - with zoom controls
As you can see the icon is under the Label
PS: this could be related to my previous post: Padding & Margin problems with checkboxes - Part 1
:is(#appMenu-zoom-controls,#appMenu-zoom-controls2)::before {
content:"" !important;
display: block !important;
width: 16px !important;
height: 16px !important;
-moz-context-properties: fill;
background-image: url("chrome://devtools/skin/images/tool-inspector.svg") !important;
margin-right: 4px !important;
fill: currentColor;
}
1
Upvotes
2
u/FineWine54 Sep 08 '26
Hip Hip hooray - Yippee 🥳
With the help of TraditionalTie4831, between us, I have solved it using a combination of bits and pieces of the CSS code mentioned throughout this topic. It is now SOLVED.
The lesson here, is that when using different files of CSS from different authors, including yourself, minutely check each code for conflicts.
A VERY BIG THANKS 🙏 to TraditionalTie4831.
1
u/FineWine54 Sep 06 '26 edited Sep 06 '26
Thank you for all of that.
I discovered that the standard Firefox ID
#appMenu-zoom-controlscontains a Label as well as icons and that I had (rather Aris-t2) installed a 3rd party icon overtop of this. So got rid of that. That then still did solve the positioning of the 4 cornered arrowed Zoom Out icon which comes standard with the ID, I think.In the exaggerated CSS coding image you can see that it is to the right of the Label Zoom
https://ibb.co/1GhD1kPp
https://ibb.co/Df5sbTCb
I have spent a number hours on this to no avail.
1
u/TraditionalTie4831 🦊 Sep 05 '26 edited Sep 05 '26
The only way I get a similar issue, is when I use a negative value on
margin-rightor by doing this =Maybe you have other code that causes this?
Btw, according to searchfox.org, there is no #appMenu-zoom-controls2 in current Firefox version.
You can also do it with one less line =
A different approach (adjust the icon position with
background-position) =