Conversation
Notices
-
@anyone who knows CSS, how can I counter "!important" rules when editing with Stylish?
Saturday, 30-Nov-13 03:34:10 UTC from web-
@ecmc What's the exact selector/DOM structure you're trying to override?
-
@redenchilada Ok, I'm trying to write my own rules to get Youtube centred. For the top bar there are margin-left and margin-right rules tagged important, I basically just want to disable them, not override them.
-
@ecmc Try this. (Margin values always default to 0, so setting it back to that is basically disabling the rest. Tweak it as needed.)
#yt-masthead-container #yt-masthead {
margin-left: 0 !important;
margin-right: 0 !important;
}