No replies
CopperHail
Offline
newbie
Last seen: 13 years 46 weeks ago
Joined: 2009-03-12
Posts: 1
Points: 0

:shrug:
I stretched the background image with a code I found, today was the first day I've ever tried to really code a site so plz bare with me. So all the coding is patched together for the most part. I know it's something simple to a coder but for a noobie like me I just don't see the error. I can't get the original body image to show up, yet all my other images/text are overlaying the background image fine, the placement is good as well. But for some odd reason I can't get the body image to show just the scripting instead, can some one help?
here's the code

 <html>
 
<head>
 
<title>Background to fit screen</title>
 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 
<meta http-equiv="Imagetoolbar" content="no">
 
 
<style type="text/css">
 
html {height:100%;}
 
body {height:100%; margin:0; padding:0;}
 
 
#bg {position:fixed; top:0; left:0; width:100%; height:100%;}
 
 
#content {position:relative; z-index:1;}
 
</style>
 
<!--[if IE 6]>
 
<style type="text/css">
 
 
html {overflow-y:hidden;}
 
body {overflow-y:auto;}
 
#bg {position:absolute; z-index:-1;}
 
#content {position:static;}
 
</style>
 
<![endif]-->
 
</head>
 
 
<body>
 
<div id="bg"><img src="http://i257.photobucket.com/albums/hh219/CopperRain/Abstractnew.jpg" width="100%" height="100%" alt=""></div>
 
<div id="content"><p>
#body
{
	background-color: #FFFFFF;
	background-image: url(<a href="http://i257.photobucket.com/albums/hh219/CopperRain/Abstractnew.jpg" rel="nofollow">http://i257.photobucket.com/albums/hh219/CopperRain/Abstractnew.jpg</a>);
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center center;
	font-family: Verdana, Helvetica, sans-serif;
	font-size: 11px;
	margin: 0px;
	padding: 0px;
 
}
 
 
#nav
{
	width: 600px;
	height: 25px;
	border-bottom: 1px solid white;
	color: white;
	background-color: #202020;
	opacity: 0.8;
	-moz-opacity: 0.8;
	filter:progid:DXImageTransform.Microsoft.Alpha(opacity=80);
 
	position: absolute;
	margin-left: -340px;
	left: 50%;
	margin-top: 0px;
	padding: 0px;
	z-index: 5;
 
}
 
#nav li
{
	display: block;
	float: left;
	height: 25px;
	width: auto;
	text-align: center;
	line-height: 25px;
}
 
#nav li a
{
	display: block;
	padding-left: 15px;
	padding-right: 15px;
	line-height: 25px;
	color: white;
	text-decoration: none;
	font-weight: bold;
}
 
#nav li a:hover
{
	background-color: #666666;
}
#active a:link {
	background-color: #666666;
}
#active a:hover {
	background-color: #666666;
}
#active a:visited {
	background-color: #666666;
}
#main
{
	width: 600px;
	margin-left: auto;
	margin-right: auto;
	border-right: 1px solid #666666;
	border-left: 1px solid #666666;
}
 
#hero
{
	margin: 0px;
	border-bottom: 1px solid white;
	width: 600px;
	height: 400px;
	background-image: url(%%HEADERIMG%%);
}
 
#header
{
	background-image: url(<a href="http://i257.photobucket.com/albums/hh219/CopperRain/Zombies.jpg" rel="nofollow">http://i257.photobucket.com/albums/hh219/CopperRain/Zombies.jpg</a>);
	height: 79px;
	padding-top: 1px;
	position: relative;
}
 
#header h1
{
	position: absolute;
	left: 20px;
	top: 8px;
	color: transparent;
	font-size: 40px;
	font-weight: bold;
	margin: 0px;
}
 
#header h1.shad
{
	left: 22px;
	top: 10px;
	color: transparent;
	opacity: 0.7;
	-moz-opacity: 0.7;
	filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}
 
#header em
{
	font-style: normal;
	text-decoration: underline;
}
 
#body
{
	padding-top: 1px;
	background-color: white;
	position: relative;
}
 
#sidebar
{
 
	width: 180px;
 
	position: absolute;
	right: -200px;
	_right: 0px;
	top: 0px;
	padding: 10px;
}
 
#sidebar h3
{
	font-size: 13px;
	border-bottom: 1px solid black;
	margin-bottom: 4px;
	margin-top: 16px;
	clear: both;
}
 
#sidebar ul
{
	margin-left: 1em;
	padding-left: 0px;
}
 
#sidebar p
{
	margin-bottom: 8px;
}
 
#content
{
	padding: 20px;
	border-right: 1px solid #b0b0b0;
	border-left: 1px solid #b0b0b0;
	color: #333333;
	min-height:400px;
	height:auto !important;
	height:400px;
}
 
#content h2
{
	font-size: 18px;
	/* 18px is the default minimum font size for which anti-aliasing will occur. */
	margin-bottom: 10px;
}
 
#content .date
{
	float: right;
}
 
#content .postedBy
{
	float: left;
}
 
#content .meta
{
	height: 1em;
}
 
#content p
{
	text-align: justify;
	line-height: 1.5em;
}
 
.comments
{
	border-top: 1px dotted #666666;
	border-bottom: 1px dotted #666666;
	padding: 4px;
	text-align: right;
	margin-bottom: 2em;
	background-image: url(comment_edit.gif);
	background-repeat: no-repeat;
	background-position: center left;
}
 
a
{
	color: #666666;
}
 
.pullout
{
	background-color: #eeeeee;
	padding: 5px;
	float: right;
	margin: 8px;
}
 
 
 
.thumbnail, .pullout {
	float: left;
		background: url('shadow.gif') no-repeat bottom right;
	margin: 5px 0px 0px 6px;
 	padding: 0px 0px 0px 0px;
	display: block;
	width: auto;
	_position: relative;
	}
 
.thumbnail img, .pullout img {
		 background-color: #fff;
	 border: 1px solid #a9a9a9;
	 display: block;
	 margin: -5px 5px 5px -5px;
	 padding: 4px;
	 position: relative;
	}
 
.thumbnail img:hover, .thumbnail:hover img, .pullout:hover img {
	background-color: #ccd;
}
 
.pullout
{
	margin: 13px 3px 3px 14px;
	background-image: url(shadow_white.gif);
 
}
 
#footer
{
	width: 678px;
	padding-top: 5px;
	padding-bottom: 5px;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	border: 1px solid #b0b0b0;
	background-color: #eeeeee;
	color: #b0b0b0;
 
}
 
.left
{
	float: left;
}
 
.right
{
	float: right;
}
 
.csskeyword
{
	color: blue;
}
 
.cssvalue
{
	color: red;
}
 
p.caption
{
	text-align: center;
}
 
small.super
{
	vertical-align: top;
	font-size: 0.75em;
	line-height: 1.3em;
}
 
.nodisplay
{
	display: none;
}
 
</p></div>
 
</body>
 
</html>

any help on the matter would be much appreciated, you would also help me learn a new trick. Thank you for your time take care