For some reason, when i add content to the main content box, the boxes on the left and right side go down.
http://habbofury2.freehostia.com/
COuld someone help me please for 1 rep. Or even better for 3 rep, edit the code so this doesn't happen.HTML Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Box</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> .menutitle{ cursor:pointer; margin-bottom: 5px; background-color:#ECECFF; color:#000000; width:140px; padding:2px; text-align:center; font-weight:bold; /*/*/border:1px solid #000000;/* */ } .submenu{ margin-bottom: 0.5em; } </style> <script type="text/javascript"> /*********************************************** * Switch Menu script- by Martial B of http://getElementById.com/ * Modified by Dynamic Drive for format & NS4/IE4 compatibility * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc) var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only if (document.getElementById){ //DynamicDrive.com change document.write('<style type="text/css">\n') document.write('.submenu{display: none;}\n') document.write('</style>\n') } function SwitchMenu(obj){ if(document.getElementById){ var el = document.getElementById(obj); var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change if(el.style.display != "block"){ //DynamicDrive.com change for (var i=0; i<ar.length; i++){ if (ar[i].className=="submenu") //DynamicDrive.com change ar[i].style.display = "none"; } el.style.display = "block"; }else{ el.style.display = "none"; } } } function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { offset += search.length end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } function onloadfunction(){ if (persistmenu=="yes"){ var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname var cookievalue=get_cookie(cookiename) if (cookievalue!="") document.getElementById(cookievalue).style.display="block" } } function savemenustate(){ var inc=1, blockid="" while (document.getElementById("sub"+inc)){ if (document.getElementById("sub"+inc).style.display=="block"){ blockid="sub"+inc break } inc++ } var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid document.cookie=cookiename+"="+cookievalue } if (window.addEventListener) window.addEventListener("load", onloadfunction, false) else if (window.attachEvent) window.attachEvent("onload", onloadfunction) else if (document.getElementById) window.onload=onloadfunction if (persistmenu=="yes" && document.getElementById) window.onunload=savemenustate </script> <style type="text/css"> <!-- .style1 { font-family: Verdana; font-size: 11px; color: #FFFFFF; } a:link { color: #FFFFFF; text-decoration: none; } a:visited { text-decoration: none; color: #FFFFFF; } a:hover { text-decoration: none; color: #FFFFFF; font-weight: bold; } a:active { text-decoration: none; color: #FFFFFF; } body { text-align: center; background-image:; margin-top: 0px; background-image: url(images/background.PNG); } #container { width: 950px; height: 38px; left: 50px; margin-top: 0px; margin-left: 30px; background-repeat: no-repeat; } #top_bar { background-image: url(images/top_bar.PNG); height: 24px; width: 950px; float-top: 0px; padding-top: 14px; margin-top: 0px; } #banner { background:url(images/banner1.PNG); width: 950px; height: 134px; margin-top: 0px; } #advert1 { background:url(images/avdertisement1.PNG); width: 930px; height: 16px; margin-top: 10px; padding: 10px; } #advert1 { background:url(images/avdertisement1.PNG); width: 930px; height: 16px; margin-top: 10px; padding: 10px; } #advert2 { background:url(images/advertisement2.PNG); width: 469px; height: 25px; margin-left: 240px; margin-top: -1px; } #content1 { background:url(images/content_top.PNG); width: 434px; height: 24px; margin-left: 245px; margin-top: 15px; padding: 12px; } #content2 { background:url(images/content_mid.PNG); width: 434px; margin-top: 14px; padding: 12px; margin-left: -12px; } #content3 { background:url(images/content_bot.PNG); width: 458px; height: 10px; margin-top: 0px; margin-left: -12px; height: 13px; } #nav1 { background:url(images/nav_top.PNG); width: 192px; margin-top:-124px; margin-left: -225px; height: 34px; } #nav2 { background:url(images/nav_mid.PNG); width: 192px; margin-top:0px; margin-left: -225px; } #nav3 { width: 192px; margin-top:0px; margin-left: -224px; height: 6px; background-image: url(images/nav_bottom.PNG); background-repeat: no-repeat; } #DOTW_1 { background:url(images/DOTW_top.PNG); width: 192px; margin-top:15px; margin-left: -225px; height: 34px; } #DOTW_2 { background:url(images/nav_mid.PNG); width: 192px; margin-top:0px; margin-left: -225px; } #DOTW_3 { width: 192px; margin-top:0px; margin-left: -224px; height: 6px; background-image: url(images/nav_bottom.PNG); background-repeat: no-repeat; } #Updates_1 { background:url(images/Updates_top.PNG); width: 192px; margin-top:15px; margin-left: -225px; height: 34px; } #Updates_2 { background:url(images/nav_mid.PNG); width: 192px; margin-top:0px; margin-left: -225px; } #Updates_3 { background:url(images/nav_bottom.PNG); width: 192px; margin-top:0px; margin-left: -224px; height: 6px; } #Radio_1 { background:url(images/radio_top.PNG); width: 192px; margin-top:-189px; margin-left: 475px; height: 34px; } #Radio_2 { background:url(images/nav_mid.PNG); width: 192px; margin-top:0px; margin-left: 475px; font-family: Verdana; font-size: 11px; color: #999999; font-weight: normal; } #Radio_3 { width: 192px; margin-top:0px; margin-left: 476px; height: 6px; background-image: url(images/nav_bottom.PNG); background-repeat: no-repeat; } #News_1 { background:url(images/news_top.PNG); width: 192px; margin-top:12px; margin-left: 475px; height: 34px; } #News_2 { background:url(images/nav_mid.PNG); width: 192px; margin-top:0px; margin-left: 475px; font-family: Verdana; font-size: 11px; color: #999999; font-weight: normal; } #News_3 { width: 192px; margin-top:0px; margin-left: 476px; height: 6px; background-image: url(images/nav_bottom.PNG); background-repeat: no-repeat; } #Chat_1 { background:url(images/chat_top.PNG); width: 192px; margin-top:12px; margin-left: 475px; height: 34px; } #Chat_2 { background:url(images/nav_mid.PNG); width: 192px; margin-top:0px; margin-left: 475px; font-family: Verdana; font-size: 11px; color: #999999; font-weight: normal; } #Chat_3 { width: 192px; margin-top:0px; margin-left: 476px; height: 6px; background-image: url(images/nav_bottom.PNG); background-repeat: no-repeat; } #Footer { background:url(images/footer.PNG); width: 871px; margin-top:12px; margin-left: -225px; height: 22px; padding-top: 8px; padding-left: 5px; padding-right: 5px; } .style4 { font-family: Tahoma; font-size: 18px; color: #FFFFFF; font-weight: bold; } .style1 { font-family: Verdana; font-size: 11px; font-style: normal; font-weight: normal; color: #999999; } .style2 { font-family: Verdana; font-size: 11px; font-style: normal; font-weight: normal; color: #FFFFFF; } --> </style> <script src="Scripts/AC_ActiveX.js" type="text/javascript"></script> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> </head> <body> <div id="container"> <div class="style1" id="top_bar">This website is best viewed in <a href="http://www.mozilla.com/en-US/firefox/">Mozilla Firefox</a>.</div> <div id="banner"> <div id="banner"></div> <div class="style2" id="advert1">Hello, and welcome to HabboFury.com. A brand new Unnoficial Habbo fansite. Owmed by <strong>Gangster</strong> and <strong>LegendOfNoob</strong></div> <div class="style2" id="advert2">Search Croaked for a party!</div> <div class="style4" id="content1"> <div align="center">Welcome to HabboFury.com </div> <div class="style1" id="content2"> Hello habbo's, welcome to HabboFury, a dedicated, unnoficial Habbo UK fansite. Owned by Gangster and LegendOfNoob. HabboFury released on DD/MM/YYYY. We wouldv'e released earlier but, we got a new and better layout, which you're looking at now. HabboFury provide you with goodies, fun games, a well ran forum and alot more. So what you waiting for? Reigster on our forum.<br /><br /><img src="images/habbos/LegendOfNoob.gif" /><img src="images/habbos/Gangster.gif" /> <!-- Keep all menus within masterdiv--> <div id="masterdiv"> <div class="menutitle" onclick="SwitchMenu('sub1')">Site Menu</div> <span class="submenu" id="sub1"> - <a href="new.htm">What's New</a><br> - <a href="hot.htm">What's hot</a><br> - <a href="revised.htm">Revised Scripts</a><br> - <a href="morezone/">More Zone</a> </span> <div class="menutitle" onclick="SwitchMenu('sub2')">FAQ/Help</div> <span class="submenu" id="sub2"> - <a href="notice.htm">Usage Terms</a><br> - <a href="faqs.htm">DHTML FAQs</a><br> - <a href="help.htm">Scripts FAQs</a> </span> <div class="menutitle" onclick="SwitchMenu('sub3')">Help Forum</div> <span class="submenu" id="sub3"> - <a href="http://www.codingforums.com">Coding Forums</a><br> </span> <div class="menutitle" onclick="SwitchMenu('sub4')">Cool Links</div> <span class="submenu" id="sub4"> - <a href="http://www.javascriptkit.com">JavaScript Kit</a><br> - <a href="http://www.freewarejava.com">Freewarejava</a><br> - <a href="http://www.cooltext.com">Cool Text</a><br> - <a href="http://www.google.com">Google.com</a> </span> <img src="about.gif" onclick="SwitchMenu('sub5')"><br> <span class="submenu" id="sub5"> - <a href="http://www.dynamicdrive.com/link.htm">Link to DD</a><br> - <a href="http://www.dynamicdrive.com/recommendit/">Recommend Us</a><br> - <a href="http://www.dynamicdrive.com/contact.htm">Email Us</a><br> </span> </div> </div> <div id="content3"></div> <div id="nav1"></div> <div class="style1" id="nav2"><br /></div> <div id="nav3"></div> <div id="DOTW_1"></div> <div class="style1" id="DOTW_2"><br /></div> <div id="DOTW_3"></div> <div id="Updates_1"></div> <div class="style1" id="Updates_2"><br /></div> <div id="Updates_3"></div> <div id="Radio_1"></div> <div id="Radio_2"><br /></div> <div id="Radio_3"></div> <div id="News_1"></div> <div id="News_2"><br /></div> <div id="News_3"></div> <div id="Chat_1"></div> <div id="Chat_2"><br /></div> <div id="Chat_3"></div> <div class="style2" id="Footer">All content copyrighted to HabboFury.com. Layout coded and designed by HabboFury owner.</div> </div> </body> </html>





Reply With Quote