MediaWiki
Difference between revisions of "Common.css"
Line 1: | Line 1: | ||
/* Answer: How to add image with link in a sidebar - MediaWiki https://stackoverflow.com/a/53597787/8992875?stw=2 */ | /* Answer: How to add image with link in a sidebar - MediaWiki https://stackoverflow.com/a/53597787/8992875?stw=2 */ | ||
− | #n-recordwizard> a:: | + | #n-recordwizard> a::after { |
content: ' '; | content: ' '; | ||
background-image: url(https://upload.wikimedia.org/wikipedia/commons/1/1e/Breezeicons-status-22-mic-red-LinguaLibre.svg); | background-image: url(https://upload.wikimedia.org/wikipedia/commons/1/1e/Breezeicons-status-22-mic-red-LinguaLibre.svg); | ||
Line 7: | Line 7: | ||
width: 30px; | width: 30px; | ||
height: 30px; | height: 30px; | ||
− | left: -6px; | + | left: -6px; /* before : use left:-6px; */ |
top: 0px; | top: 0px; | ||
background-repeat: no-repeat; /* Do not repeat the image */ | background-repeat: no-repeat; /* Do not repeat the image */ |
Revision as of 16:09, 1 January 2019
/* Answer: How to add image with link in a sidebar - MediaWiki https://stackoverflow.com/a/53597787/8992875?stw=2 */
#n-recordwizard> a::after {
content: ' ';
background-image: url(https://upload.wikimedia.org/wikipedia/commons/1/1e/Breezeicons-status-22-mic-red-LinguaLibre.svg);
position: absolute;
width: 30px;
height: 30px;
left: -6px; /* before : use left:-6px; */
top: 0px;
background-repeat: no-repeat; /* Do not repeat the image */
}
#n-recordwizard {
position:relative;
} /**/