this post was submitted on 08 Mar 2024
3 points (100.0% liked)
Firefox Customs
3 readers
9 users here now
Post your unsupported Firefox customizations here!
From the makers of r/FirefoxCSS
Links
Related
Rules
- Posts must have flair!
- Posts cannot be memes/shitposts. They should be about Firefox customization with CSS.
- Please be civil. Bear in mind that many users come here for help and would be turned off by insults and rudeness.
- When posting large amount of code use a service dedicated to hosting text snippets, such as pastebin, hastebin, github gist or equivalent. Relatively short snippets can be wrapped in code-block for inline viewing.
- Do NOT use url-shorteners or link to compressed downloads (such as zip or rar) when sharing code.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Your example css here kinda makes me believe that you have a wrong idea about how selectors work. What you have written sounds like your intention is to create a sort of scope with the outer
#menu-history-clear-recent-history
selector and then apply the rules to elements matching.checkbox-check
within that outer scope - that is, to match.checkbox-check
elements which are inside#menu-history-clear-recent-history
.That kind of construction doesn't exist in css and thus this is invalid rule. What you would do instead is like this:
The space character
between selectors (the descendant combinator) means "what comes after it needs to be inside what came before it". More about selectors at MDN
Thanks for that. I will look at the link.