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:

tooltip image

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:

tooltip css

will produce:

nice tooltip

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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -