User talk:Jane023/global.css

Add topic
From Meta, a Wikimedia project coordination wiki
Latest comment: 4 years ago by Nirmos in topic Specificity

Specificity[edit]

Jane023: As I said on phab:T236616#5609469, you'll need to somehow increase the specificity for this to work correctly. This is because of a competing CSS rule that overrides what you have currently written. More specifically, your current CSS will not work on images using borders like [[File:Example.png|border]]. One way to increase the specificity is to add " !important" between the value and the semicolon:

.gadget-marklocalimages {
	border: 5px solid green !important;
}

Another way is to make the selector more specific:

.mw-parser-output .gadget-marklocalimages {
	border: 5px solid green;
}

Nirmos (talk) 15:59, 29 October 2019 (UTC)Reply