Hi,
Apologies if I seem like a simpleton - I'm new to this. I've created a page where I've tried to absolutely position a div within the centered container of the page. It doesn't seem to be working - when I change the browser window size, the AP DIV stays where it is, whereas the rest responds correctly.
The link is
www.norwichbodyartfestival.co.uk/venue.html
As you'll prob be able to see, I would like the scroll box to sit on top of the 'Venue' column.
My coding is this...
<style type="text/css">
<!--
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #000000;
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
}
.oneColElsCtr #container {
width: 800px;
height: 600px;
background: #000000;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
}
.oneColElsCtr #mainContent {
padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
}
#header {
width: 800px;
height: 531px;
background: #000000;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
}
#nav {
width: 800px;
height: 69px;
background: #000000;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
}
#Layer1 {
position:absolute;
left:510px;
top:98px;
width:310px;
height:366px;
z-index:1;
overflow: scroll;
}
.style1 {font-size: 10px}
-->
</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('navhome_over.jpg','navabout_over.jpg','navvenue_over.jpg','navtickets_over .jpg','navcontact_over.jpg','navink_out.jpg')">
<div class="style1" id="Layer1">
<p><img src="standrewshall.jpg" width="295" height="188" align="middle" /></p>
<p align="left">Lorem ipsum ...</p>
</div>
<div id="container">
<div id="header"><img src="nbafvenue.jpg" alt="Venue" width="800" height="531" /></div>
<div class="oneColElsCtr" id="nav"><a href="home.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navhome','','navhome_over.jpg',1)"><img src="navhome_out.jpg" alt="Home" name="navhome" width="127" height="69" border="0" id="navhome" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navabout','','navabout_over.jpg',1)"><img src="navabout_out.jpg" alt="About" name="navabout" width="128" height="69" border="0" id="navabout" /></a><a href="venue.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Venue','','navvenue_over.jpg',1)"><img src="navvenue_out.jpg" alt="Venue" name="Venue" width="123" height="69" border="0" id="Venue" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navtickets','','navtickets_over.jpg',1)"><img src="navtickets_out.jpg" alt="Tickets" name="navtickets" width="155" height="69" border="0" id="navtickets" /></a><a href="contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Contact','','navcontact_over.jpg',1)"><img src="navcontact_out.jpg" alt="Contact" name="Contact" width="147" height="69" border="0" id="Contact" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navink','','navink_out.jpg',1)"><img src="navink_over.jpg" alt="Ink Virgins" name="navink" width="120" height="69" border="0" id="navink" /></a></div>
</body>
</html>
Any help would be greatly appreciated.
Thanks...