I have a site which has a banner image that I have set to span the width of the window, but to do this, the only way I know how is to set the position of the image to fixed (without it fixed, it doesn't span the entire width). However, when the image is set to fixed, it takes away the scroll bar so I can't scroll down to see the rest of the content on my page. Any suggestions?
Here's my code:
Code:<style type="text/css"> body { margin-left: 0px; margin-top: 0px; background-image: url(../images/Page.jpg); background-repeat: no-repeat; } #header {position:fixed; width:100%;} .style1 { font-family: Arial, Helvetica, sans-serif; color: #000000; } a:link { color: #000000; } .style2 {font-family: Arial, Helvetica, sans-serif} </style>Code:<body onload="MM_preloadImages('../images/buttons/districtRO.png','../images/buttons/jacksonRO.png','../images/buttons/tibbetsRO.png','../images/buttons/westsideRO.png','../images/buttons/middleRO.png','../images/buttons/HighRO.png')"> <div id="header"> <p align="center"><img src="../images/header2.jpg" alt="Elkhorn Area School District" width="100%" height="256" /><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','../images/buttons/districtRO.png',1)"><img src="../images/buttons/district.png" name="Image6" width="160" height="35" border="0" id="Image6" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','../images/buttons/jacksonRO.png',1)"><img src="../images/buttons/jackson.png" name="Image5" width="160" height="35" border="0" id="Image5" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','../images/buttons/tibbetsRO.png',1)"><img src="../images/buttons/tibbets.png" name="Image8" width="160" height="35" border="0" id="Image8" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','../images/buttons/westsideRO.png',1)"><img src="../images/buttons/westside.png" name="Image9" width="160" height="35" border="0" id="Image9" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','../images/buttons/middleRO.png',0)"><img src="../images/buttons/middle.png" name="Image10" width="160" height="35" border="0" id="Image10" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','../images/buttons/westsideRO.png',1)"></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','../images/buttons/middleRO.png',1)"></a><a href="../pages/High School/Index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','../images/buttons/HighRO.png',1)"><img src="../images/buttons/High.png" name="Image7" width="150" height="35" border="0" id="Image7" /></a></p> <table width="100%" border="0"> <tr> <td width="161" rowspan="2" align="left" valign="top" bgcolor="#FFFFFF"><span class="style2">News<br /> Registration Guide<br /> Bell Schedule<br /> Family Access<br /> Announcements<br /> Athletics<br /> Co-curricular <br /> Summer School<br /> Calendar<br /> Educational Resources<br /> Lunch Menu<br /> Contact<br /> Staff Directory</span></td> <td width="579" align="center" valign="top" bgcolor="#FFFFFF"><!-- TemplateBeginEditable name="Header" --><span class="style2">Header</span><!-- TemplateEndEditable --></td> </tr> <tr> <td align="left" valign="top" bgcolor="#FFFFFF"><!-- TemplateBeginEditable name="Content" --><span class="style2">Content</span><!-- TemplateEndEditable --></td> </tr> </table> <p align="center"><span class="style1">District</span> | <span class="style2">Jackson | Tibbets | West Side<br /> Middle School | <a href="../pages/High School/Index.html">High School</a></span> </p> </div> </body>



Reply With Quote
Bookmarks