Saturday 12 February 2011

Website background images

I created a photoshop coming soon page for my website and it was too small to stretch the whole page so I found the code below. Additionally the image will resize if you resize the browser.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MyJungle</title>
<style type="text/css">
<!--
html {
background: url(images/indeximg.gif) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

-->
</style></head>

<body>
</body>
</html>

No comments:

Post a Comment