Conversation

Notices

  1. @anyone who knows CSS, how can I counter "!important" rules when editing with Stylish?

    Saturday, 30-Nov-13 03:34:10 UTC from web
    1. @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
    2. @ecmc What's the exact selector/DOM structure you're trying to override?

      Saturday, 30-Nov-13 03:44:15 UTC from web
      1. @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
        1. @ecmc Try this. (Margin values always default to 0, so setting it back to that is basically disabling the rest. Tweak it as needed.)

          # # {
          margin-left: 0 !important;
          margin-right: 0 !important;
          }

          Saturday, 30-Nov-13 03:56:25 UTC from web