Template:Birth of Burns - 1859/styles.css

/*
 * CSS for [[Page:'Birth of Burns' programme, Newcastle - 1859-01-25.jpg]]
 * 
 * [[Category:Graphic frame CSS]]
 * [[Category:Specific article templates]]
 */
 
._birth_of_burns_frame {
	/* shrink to fit, centre in page */
	display: table;
	margin: 0 auto;

	/* need to set this width first to provide space for image */
	/* ereaders (and other offline devices) will see only this, as they don't
	   have access to the CSS url source */
	border: 50px solid LightGrey;
	/* set border from image
	   this can't be done by inline CSS for security reasons, but this
	   is sanitised CSS, so we get to use Commons images */
	border-image-source: url("https://upload.wikimedia.org/wikipedia/commons/d/d0/%27Birth_of_Burns%27_programme%2C_Newcastle_-_1859-01-25_-_frame.png");
	border-image-slice: 80 80; /* this is the size of the border elements in the source image */
	border-image-width: 80px; /* Tthis is the size of the result on the page */
	border-image-repeat: round;

	/* gap between content and border */
	padding: 10px;
}