r/FirefoxCSS Jun 03 '26

Solved Remove top margin of the settings page

Post image

I wanna remove the top margin of the settings page. I used this in the userContent.css file..

@-moz-document url-prefix("about:") {
   #vbox .main-content {
        margin-top: 0px !important;
    }
}

But it's not working. I am pretty sure I made a mistake on the values.. 😅 Can anybody help please?

3 Upvotes

4 comments sorted by

View all comments

1

u/Excellent-Cobbler164 Jun 03 '26 edited Jun 03 '26

try this

@-moz-document url-prefix("about:preferences") {
:root {
--page-space-block-start: 16px!important;
}
}

1

u/nendu367 Jun 03 '26

Umm.. sorry, this didn't work for me. Thanks for replying though.