Hey all, i'm an absolute novice when it comes to CSS and HTML, just tried having a stab at a landing page for my website whilst I get it all built up again.
Its basically a background image, then on top of it another 'splash' image, which is basically my logo.
So far i've got the CSS and HTML for the index working as far as when you display the page it shows the background, but then the 'splash' image is underneath the background image at the bottom of the page, rather than kind of floating above the background......
and the CSS .....
I was trying to get the background image as a permanent fixed object, and then the splash image to be something that stays central to the window.
I know there are probably a million and one errors in that but would appreciate any kind of help with this!
Its basically a background image, then on top of it another 'splash' image, which is basically my logo.
So far i've got the CSS and HTML for the index working as far as when you display the page it shows the background, but then the 'splash' image is underneath the background image at the bottom of the page, rather than kind of floating above the background......
<!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">
<link rel="stylesheet" href="Site/Stylesheet.css" media="screen">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Daniel Rostron - Coming Soon.......</title>
</head>
<body>
<div id="container">
<img src="Images/Background.jpg" />
<div id="landing page">
<img src="Images/LandingPage.jpg" />
</div>
</div>
</body>
</html>
and the CSS .....
@charset "utf-8";
/* CSS Document */
div#container
{position:fixed;
width:100%;height:100%;
margin:0px;
padding:0px;
border:none;
position:inherit;
overflow:hidden;
float:left;
z-index:1;}
div#landingpage
{float:none;
margin:auto;
position:absolute;
overflow:hidden;
z-index:2}
I was trying to get the background image as a permanent fixed object, and then the splash image to be something that stays central to the window.
I know there are probably a million and one errors in that but would appreciate any kind of help with this!