Admin Forum:Monobook transparency, bg question

Hello. I have two technical question. First one - I wanted to make page in Monobook to be transparent (so bg would be visible through it). Transparency should be circa 45%. Second one - is it possible to make fixed bg to be centered (so at each resolution, viewers will see the center of the background). Regards, Final Cannon   Dyskusja  15:24, October 7, 2012 (UTC)


 * I know of at least two methods of getting transparency in blocks. One is using the rbga method for background-color style. Example in the box on the right. The code is

Text in a 50% black / 50% transparent block

 Text in a 50% black / 50% transparent block
 * where the "0.5" in the "rgba(0,0,0,0.5)" value is the desired transparency level. The downsides are that the rgba method isn't supported in all browsers - IE 8 in particular. You also have to define a color that will be 'the other 50%' of the background.


 * The second method is simply using a semi-transparent image as the background for the article, but that requires you to create and upload the file and depending on its size, it might lower page loading speed.


 * Pick a method and add either

 background-color: rgba(0, 0, 0, 0.45); }
 * 1) bodyContent, #content {
 * or

 background-image: url(URL OF YOUR SEMI-TRANSPARENT BACKGROUND IMAGE); }
 * 1) bodyContent, #content {
 * to your MediaWiki:Monobook.css


 * As for the second question - I assume we're still talking about Monobook, since the bg in the Wikia skin is centered by default? You can achieve that by using , but depending on the image it might cause more harm than good. — Sovq 20:26, October 7, 2012 (UTC)