Template:Expand Term/style.css

/* Hover term to expand definition. term - word or phrase to expand on. definition - made visible */ .showterm-definition { visibility: hidden; position: absolute; display: inline; border-radius: 5px; background: rgb(0,99,130); /* fallback */ background: rgba(0,99,130,.95); color: white; z-index: 1; padding: 3px 8px; } .showterm-term { text-decoration: underline; display: inline; } .showterm-term:hover + .showterm-definition { visibility: visible; } .showterm-definition:hover { visibility: visible; } .showterm-definition a, .showterm-definition a:visited { color: white; text-decoration: underline; }