Div positionering i xhtml?
Hej,Jeg er ved at lave en side i xhtml med div og css, menuen flytter sig når jeg rykker med browseren? Hjælp!
<!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>
<TITLE></TITLE>
<link href="style1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="link" align="right"> <a href="index.htm"><img align="center"src="images/home.jpg" border="0"/></a>
<br />
<br />
<a href="foto.htm">Fotoalbum</a> <br />
<br />
<a href="design.htm">Design</a> <br />
<br />
<a href="banner.htm">Banner</a> <br />
<br />
<a href="web.htm">Web</a> <br />
<br />
<a href="kontakt.htm">Kontakt</a> <br />
<br />
</div>
</div>
</body>
</html>
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: normal;
color: #FFFFFF;
text-decoration: none;
background-image: url(images/bg.jpg);
background-repeat: repeat-x;
margin: 40px;
overflow: auto;
background-color: #FFFFFF;
}
#link {
position: relative;
left: 510px;
top: 110px;
height: 400px;
width: 140px;
}
a:link {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #FFFFFF;
text-decoration: none;
}
a:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #EA8315;
text-decoration: none;
}
a:visited {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #336666;
text-decoration: none;
}
a:active {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #96C2BF;
text-decoration: none;
}
#container {
background: url(images/main.jpg) no-repeat top center;
padding: 0px 175px 0px 110px;
margin: 0px;
}