TheHaloEffect
10-02-2006, 12:20 PM
Hey!!
The design for my site is just using one image, with image mapping over the top for the links, then for the content, i'm using iframes to display the pages.
A problem i have is, with different resolution, or if you make your web browser smaller, the text/iframe gets misaligned. I'm not actually sure where i'm going wrong, i asked my web development tutor but he just drew me a diagram, which was completely useless.
Below is the actual index page, everything is ran off that.
Is there anything i can do to make the div or the iframe stay aligned regardless the resolution and/or browser size?
My site's temporary URL, to help you understand what i'm on about is: http://random.the3rdhero.com/
The index file is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 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=iso-8859-1" />
<title>The Randomizer</title>
<style type="text/css">
<!--
body {
background-color: #cccccc;
}
-->
</style>
<link rel=stylesheet href="css.css" type="text/css" />
</head>
<body>
<div align="center"><img name="bg" src="layout.jpg" width="716" height="515" border="0" usemap="#bg" />
<map name="bg">
<area shape="rect" coords="492,132,618,152" href="mailto: the3rdhero@msn.com" target="center" alt="Contact Us" />
<area shape="rect" coords="358,131,484,152" href="forum.html" target="center" alt="Forums" />
<area shape="rect" coords="226,130,353,151" href="gen.html" target="center" alt="Random Generators" />
<area shape="rect" coords="94,129,220,150" href="home.html" target="center" alt="Home" />
</map>
<div style="position: absolute; overflow: visible; top:171px; left:86px; width: 809px; height: 340px;">
<iframe src="home.html" name="center" width="630" height="340" scrolling="no" frameborder="0" allowtransparency="true"></iframe></div>
</div>
</body>
</html>
The design for my site is just using one image, with image mapping over the top for the links, then for the content, i'm using iframes to display the pages.
A problem i have is, with different resolution, or if you make your web browser smaller, the text/iframe gets misaligned. I'm not actually sure where i'm going wrong, i asked my web development tutor but he just drew me a diagram, which was completely useless.
Below is the actual index page, everything is ran off that.
Is there anything i can do to make the div or the iframe stay aligned regardless the resolution and/or browser size?
My site's temporary URL, to help you understand what i'm on about is: http://random.the3rdhero.com/
The index file is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 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=iso-8859-1" />
<title>The Randomizer</title>
<style type="text/css">
<!--
body {
background-color: #cccccc;
}
-->
</style>
<link rel=stylesheet href="css.css" type="text/css" />
</head>
<body>
<div align="center"><img name="bg" src="layout.jpg" width="716" height="515" border="0" usemap="#bg" />
<map name="bg">
<area shape="rect" coords="492,132,618,152" href="mailto: the3rdhero@msn.com" target="center" alt="Contact Us" />
<area shape="rect" coords="358,131,484,152" href="forum.html" target="center" alt="Forums" />
<area shape="rect" coords="226,130,353,151" href="gen.html" target="center" alt="Random Generators" />
<area shape="rect" coords="94,129,220,150" href="home.html" target="center" alt="Home" />
</map>
<div style="position: absolute; overflow: visible; top:171px; left:86px; width: 809px; height: 340px;">
<iframe src="home.html" name="center" width="630" height="340" scrolling="no" frameborder="0" allowtransparency="true"></iframe></div>
</div>
</body>
</html>