MediaWiki
Difference between revisions of "Common.css"
Line 2: | Line 2: | ||
/* 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::before { | #n-recordwizard> a::before { | ||
− | content: " "; | + | content: '<img src="https://upload.wikimedia.org/wikipedia/commons/1/1e/Breezeicons-status-22-mic-red-LinguaLibre.svg" style="width:30px;height:30px;"> '; |
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); | ||
position: absolute; | position: absolute; |
Revision as of 16:06, 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::before {
content: '<img src="https://upload.wikimedia.org/wikipedia/commons/1/1e/Breezeicons-status-22-mic-red-LinguaLibre.svg" style="width:30px;height:30px;"> ';
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: -25px;
top: -8px;
background-repeat: no-repeat; /* Do not repeat the image */
}
#n-recordwizard {
position:relative;
} /**/