Hey I am trying to create a basic page with currently just two images. The problem is no matter how i set the two elements whenever I resize my webpage they end up meeting each other and overlapping. All I want to do is keep them in one position no matter what resizing is done. Kinda like in every other webpage on the internet. Here is my code.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Dual Shooter</title>
<style type="text/css">
body
{
margin: 25px;
}
div#container
{
margin: 25px;
width: 800px;
position:fixed;
}
div#cod
{
position:fixed;
top:16%;
left:25%;
right:37.5%;
}
div#halo
{
position:fixed;
top:16%;
right:25%;
}
</style>
</head>
<body>
<div id="container">
<div id="cod">
<a href="cod.html">
<img src="modernwarfare3.png" alt="Call Of Duty Modern Warfare 3"/>
</a>
</div>
<div id="halo">
<a href="halo4.html">
<img src="halo4.png" alt="Halo 4"/>
</a>
</div>
<div id="footer">
</div>
</div>
</body>
</html>
Thank you
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Dual Shooter</title>
<style type="text/css">
body
{
margin: 25px;
}
div#container
{
margin: 25px;
width: 800px;
position:fixed;
}
div#cod
{
position:fixed;
top:16%;
left:25%;
right:37.5%;
}
div#halo
{
position:fixed;
top:16%;
right:25%;
}
</style>
</head>
<body>
<div id="container">
<div id="cod">
<a href="cod.html">
<img src="modernwarfare3.png" alt="Call Of Duty Modern Warfare 3"/>
</a>
</div>
<div id="halo">
<a href="halo4.html">
<img src="halo4.png" alt="Halo 4"/>
</a>
</div>
<div id="footer">
</div>
</div>
</body>
</html>
Thank you