r/FirefoxCSS • u/Acasiop • 6d ago
Solved Is it possible to change the way basic html elements look?
/r/firefox/comments/1xz4j0a/is_it_possible_to_change_the_way_basic_html/
3
Upvotes
r/FirefoxCSS • u/Acasiop • 6d ago
1
u/t31os 3d ago edited 3d ago
I don't know what you mean by making the options flatter (please explain what you mean or provide an illustration), but you can restrict the height of the select dropdowns using userChrome.css.
Select dropdowns are part of the browser's chrome dom and use a general menupopup and arrow scrollbox, which are rendered in shadow dom'ed parts, but you can match the ID for dropdown popup, set a variable, then check for the presence of that variable when setting max-height on the arrowbox (as you don't want to apply this generally to all arrowboxes in the browser).
Eg:
I used 100px as an example (adjust as desired) so you can see the styling work with a select element, like the one here:
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/select