katrinkamille
29 Jan 2010, 04:37 PM
Hey guys! I'm new at this whole web design thing.. but I'm trying to work on this website but the DIV i made with text in it moves around anytime i resize the window. Help?
here is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>KILL THE DESIGN</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/*<![CDATA[*/
body
#one
{
position:absolute;
top:90px;
right:205px;
}
object
{
width:460px;
height:540px;
border:solid 0px #000000;
}
/*//]]>*/
</style>
<script type="text/javascript">
//<![CDATA[
// written by: Coothead
function updateObjectIframe(which){
document.getElementById('one').innerHTML = '<'+'object id="foo" name="foo" type="text/html" data="'+which.href+'"><\/object>';
}
//]]>
</script>
</head>
<body>
<div id="one">
<object id="foo" name="foo" type="text/html" data="home.html"></object>
</div>
<div>
</div>
<div id="container">
<div id="banner"></div>
<div id="sidebar">
<a href="home.html" class="nav" onclick="updateObjectIframe(this); return false;">Home</a>
<a href="about.html" class="nav" onclick="updateObjectIframe(this); return false;">About</a>
<a href="gallery.html" class="nav" onclick="updateObjectIframe(this); return false;">Gallery</a>
</div>
<div id="sidebar2">
<a href="contact.html" class="nav" onclick="updateObjectIframe(this); return false;">Contact Us</a>
<a href="links.html" class="nav" onclick="updateObjectIframe(this); return false;">Links</a>
<a href="order.html" class="nav" onclick="updateObjectIframe(this); return false;">Order</a>
</div>
<div id="copyright">
<br />
© Kill The Design 2009
<br />
<a href="#">Credit</a>
<br /><br />
</div>
</div>
</body>
</html>
here is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>KILL THE DESIGN</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/*<![CDATA[*/
body
#one
{
position:absolute;
top:90px;
right:205px;
}
object
{
width:460px;
height:540px;
border:solid 0px #000000;
}
/*//]]>*/
</style>
<script type="text/javascript">
//<![CDATA[
// written by: Coothead
function updateObjectIframe(which){
document.getElementById('one').innerHTML = '<'+'object id="foo" name="foo" type="text/html" data="'+which.href+'"><\/object>';
}
//]]>
</script>
</head>
<body>
<div id="one">
<object id="foo" name="foo" type="text/html" data="home.html"></object>
</div>
<div>
</div>
<div id="container">
<div id="banner"></div>
<div id="sidebar">
<a href="home.html" class="nav" onclick="updateObjectIframe(this); return false;">Home</a>
<a href="about.html" class="nav" onclick="updateObjectIframe(this); return false;">About</a>
<a href="gallery.html" class="nav" onclick="updateObjectIframe(this); return false;">Gallery</a>
</div>
<div id="sidebar2">
<a href="contact.html" class="nav" onclick="updateObjectIframe(this); return false;">Contact Us</a>
<a href="links.html" class="nav" onclick="updateObjectIframe(this); return false;">Links</a>
<a href="order.html" class="nav" onclick="updateObjectIframe(this); return false;">Order</a>
</div>
<div id="copyright">
<br />
© Kill The Design 2009
<br />
<a href="#">Credit</a>
<br /><br />
</div>
</div>
</body>
</html>