469,963 Members | 1,849 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

Absolute Positioning in IE6 Help

Greetings.

I am having troubles using absolute positioning in IE6. When I establish the width as 100%, it's not spanning the entire width of the browser. It works in Firefox, Safari, and IE7.... Just not IE6. Any suggestions?

Website: stevenkneff.com

code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>News, Politics, &amp; World Affairs by Steven K. Neff</title>
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
left:0px;
top:0px;
height:46px;
z-index:1;
background-color: #333333;
width: 100%;
}
#apDiv2 {
position:absolute;
left:0px;
top:45px;
width:100%;
height:31px;
z-index:2;
background-image: url(../../../background22.jpg);
}
#apDiv3 {position:absolute;
left:0px;
top:44px;
width:436px;
height:31px;
z-index:5;
}td img {display: block;}td img {display: block;}
#apDiv4 {
position:absolute;
left:0px;
top:76px;
width:100%;
height:28px;
z-index:4;
background-image: url(../../../back2.jpg);
margin: 0px;
right: 0px;
clear: both;
}
body {
background-color: #CCCCCC;
}td img {display: block;}
#apDiv5 {
position:absolute;
left:0px;
top:45px;
width:100%;
height:31px;
z-index:3;
margin: 0px;
right: 0px;
clear: both;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body onload="MM_preloadImages('../../../politics.png','../../../world.png','../../../openforum.png','../../../video.png','../../../chatroom.png')">
<div id="apDiv1"></div>
<div id="apDiv2"></div>
<div id="apDiv3">
<table border="0" cellpadding="0" cellspacing="0" width="435">
<!-- fwtable fwsrc="NAVBARMAIN.png" fwpage="Page 1" fwbase="NAVBARMAIN.jpg" fwstyle="Dreamweaver" fwdocid = "678609774" fwnested="0" -->
<tr>
<td><img src="../../../spacer.gif" alt="" name="undefined_2" width="68" height="1" border="0" id="undefined_2" /></td>
<td><img src="../../../spacer.gif" alt="" name="undefined_2" width="72" height="1" border="0" id="undefined_2" /></td>
<td><img src="../../../spacer.gif" alt="" name="undefined_2" width="65" height="1" border="0" id="undefined_2" /></td>
<td><img src="../../../spacer.gif" alt="" name="undefined_2" width="93" height="1" border="0" id="undefined_2" /></td>
<td><img src="../../../spacer.gif" alt="" name="undefined_2" width="52" height="1" border="0" id="undefined_2" /></td>
<td><img src="../../../spacer.gif" alt="" name="undefined_2" width="82" height="1" border="0" id="undefined_2" /></td>
<td><img src="../../../spacer.gif" alt="" name="undefined_2" width="3" height="1" border="0" id="undefined_2" /></td>
<td><img src="../../../spacer.gif" alt="" name="undefined_2" width="1" height="1" border="0" id="undefined_2" /></td>
</tr>
<tr>
<td><img name="NAVBARMAIN_r1_c1" src="../../../NAVBARMAIN_r1_c1.jpg" width="68" height="32" border="0" id="NAVBARMAIN_r1_c1" alt="" /></td>
<td><a href="javascript:;" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('NAVBARMAIN_r1_c2','','. ./../../politics.png',1);"><img name="NAVBARMAIN_r1_c2" src="../../../NAVBARMAIN_r1_c2.jpg" width="72" height="32" border="0" id="NAVBARMAIN_r1_c2" alt="" /></a></td>
<td><a href="javascript:;" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('NAVBARMAIN_r1_c3','','. ./../../world.png',1)"><img name="NAVBARMAIN_r1_c3" src="../../../NAVBARMAIN_r1_c3.jpg" width="65" height="32" border="0" id="NAVBARMAIN_r1_c3" alt="" /></a></td>
<td><a href="javascript:;" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('NAVBARMAIN_r1_c4','','. ./../../openforum.png',1);"><img name="NAVBARMAIN_r1_c4" src="../../../NAVBARMAIN_r1_c4.jpg" width="93" height="32" border="0" id="NAVBARMAIN_r1_c4" alt="" /></a></td>
<td><a href="javascript:;" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('NAVBARMAIN_r1_c5','','. ./../../video.png',1);"><img name="NAVBARMAIN_r1_c5" src="../../../NAVBARMAIN_r1_c5.jpg" width="52" height="32" border="0" id="NAVBARMAIN_r1_c5" alt="" /></a></td>
<td><a href="javascript:;" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('NAVBARMAIN_r1_c6','','. ./../../chatroom.png',1);"><img name="NAVBARMAIN_r1_c6" src="../../../NAVBARMAIN_r1_c6.jpg" width="82" height="32" border="0" id="NAVBARMAIN_r1_c6" alt="" /></a></td>
<td><img name="NAVBARMAIN_r1_c7" src="../../../NAVBARMAIN_r1_c7.jpg" width="3" height="32" border="0" id="NAVBARMAIN_r1_c7" alt="" /></td>
<td><img src="../../../spacer.gif" alt="" name="undefined_2" width="1" height="32" border="0" id="undefined_2" /></td>
</tr>
</table>
</div>
<div id="apDiv4"></div>
<div id="apDiv5"></div>
</body>
</html>
Jul 29 '07 #1
0 1547

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

14 posts views Thread by Harlan Messinger | last post: by
1 post views Thread by Lars A. Gundersen | last post: by
4 posts views Thread by Alan Silver | last post: by
6 posts views Thread by Mark | last post: by
20 posts views Thread by mehstg1319 | last post: by
14 posts views Thread by Fistro | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.