|
How to label images that you plan on moving
Hi,
Im trying to move some images on my webpage. I tried position: absolute and position: relative and used padding but my images were moving together.
Heres my HTML
<!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>Untitled Document</title>
<link href="Level1_Arial.css" rel="stylesheet" type="text/css" />
<link href="data.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#006600">
<div class="movielink"><img src="movie.gif"</div>
<div class="gamelink"><img src="controller.gif"</div>
<blockquote> </blockquote>
</body>
</html>
My CSS
body
{
background-image:url('blackbar.jpg');
background-repeat:repeat-x;
}
.movielink {position:absolute};
.movielink {left:800px}
.gamelink
{
position:relative;
padding-left:950px;
}
Is it because Im creating div classes to identify my images???
|