Return to Snippet

Revision: 39558
at January 18, 2011 07:41 by RubenBristian


Initial Code
/* css */
#bg {
	position:fixed;
	top:-50%;
	left:-50%;
	width:200%;
	height:200%;
}
#bg img {
	position:absolute;
	top:0;
	left:0;
	right:0;
	bottom:0;
	margin:auto;
	min-width:50%;
	min-height:50%;
}

/* html */
<div id="bg">
	<img src="images/background.jpg" alt="Background Image" />
</div>

Initial URL

                                

Initial Description

                                

Initial Title
Fullsize background image

Initial Tags
css

Initial Language
CSS