css3 - Firefox userChrome.css tooltip unwanted white border -
in userchrome.css:
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace xul */ tooltip { padding: 0px !important; padding-left: 0px !important; background-color: #000000 !important; border-width: 0px !important; border-left-width: 0px !important; border-right-width: 0px !important; border-top-width: 0px !important; border-bottom-width: 0px !important; } tooltip * { color: red !important; background-color: #000000 !important; }
the tooltip has unwanted white border:
the css border-width: 0px;
attempt rid of this. if try doing type of css margin:
tooltip flick on off in undesired fashion.
ok, here answer own question, codes:
will produce:
note: box-shadow
not seem work on tooltip, opacity
, border-radius
does.
tooltip { padding: 6px !important; background-color: #000000 !important; border-width: 0px !important; border-left-width: 0px !important; border-right-width: 0px !important; border-top-width: 0px !important; border-bottom-width: 0px !important; border: 1px solid blue !important; border-radius:6px; opacity: 0.8; } tooltip * { color: #cccccc !important; background-color: #000000 !important; margin:0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin-bottom: 0px !important; padding:0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; padding-bottom: 0px !important; border-width: 0px !important; border-left-width: 0px !important; border-right-width: 0px !important; border-top-width: 0px !important; border-bottom-width: 0px !important; }
Comments
Post a Comment