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 Make a more "specific" selector (like, maybe for '.notice a' use 'body .notice a' or something) to target the elements you're trying to override. (And then use !important, obviously.)
Saturday, 30-Nov-13 03:39:01 UTC from web -
@ecmc What's the exact selector/DOM structure you're trying to override?
Saturday, 30-Nov-13 03:44:15 UTC from web-
@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.
Saturday, 30-Nov-13 03:50:02 UTC from web-
@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;
}Saturday, 30-Nov-13 03:56:25 UTC from web
-
-
-