for some reason the background-position is not working I am trying to set up a variety of planet divs filled with pngs so I can then do some other coding but the images are all appearing stacked atop eachother and some of them are cut up across the div.
CSS:
body{
background-image:url('../img/para2/space_bg.jpg');
}
#planet_1{
background:url('../img/para2/planet_1.png');
height:200px;
width:200px;
position:absolute;
margin:0;
padding:0;
display:block;
background-position: 400px 400px;
}
#planet_2{
background:url('../img/para2/planet_2.png');
height:200px;
width:200px;
position:absolute;
margin:0;
padding:0;
display:block;
background-position: 800px 600px;
}
#planet_3{
background:url('../img/para2/planet_3.png');
height:200px;
width:200px;
position:absolute;
margin:0;
padding:0;
display:block;
background-position:450px 700px;
}
#planet_4{
background:url('../img/para2/planet_4.png');
height:200px;
width:200px;
position:absolute;
margin:0;
padding:0;
display:block;
background-position:700px 350px;
}
html:
<!DOCTYPE html>
<html lang = en>
<head>
<title>BASIC PARALLAX MOUSE 2</title>
<meta charset = "utf8">
<link rel = "stylesheet" href = "css/para2.css">
<script src = "java/jquery-2.1.1.js"></script>
<script src = "java/jquery_ui.js"></script>
</head>
<body>
<div id = "planet_1"></div>
<div id = "planet_2"></div>
<div id = "planet_3"></div>
<div id = "planet_4"></div>
</body>
</html>
it seems very strange that I cannot position my planets where I want, I'm sure I have the syntax correct on the background-position elements