HTML - How To Remove The Vertical Space Between The Div And The Right Of The Page.
you can view the page: www.yanglihao.com
<!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" > <title>浩</title> <head id="ctl00_Head1"> <style type="text/css"> <!-- A:link {color:#993333;text-decoration:none} A:visited {color:#993333;text-decoration: none} A:hover {color:#778833;background:#553333;text-decoration: none} body { font: 100% Verdana, Arial, Helvetica, sans-serif; background: #111122; margin: 0; padding: 0; text-align: center; color: #000000; } .thrColFixHdr #container { width: 780px; background: #CCCCDD; margin: 0 auto; border: 1px solid #000000; text-align: left; } .thrColFixHdr #header { background: #221122; padding: 0 10px 0 20px; } .thrColFixHdr #header h1 { margin: 0; padding: 10px 0; width: 780px; } .thrColFixHdr #sidebar1 { float: left; width: 150px; background: #111522; padding: 15px 10px 15px 20px; } .thrColFixHdr #sidebar2 { float: right; width: 160px; background: #111522; padding: 15px 10px 15px 20px; } .thrColFixHdr #mainContent { margin: 0 200px; padding: 0 10px; } .thrColFixHdr #footer { padding: 0 10px 0 20px; background:#111122; } .thrColFixHdr #footer p { margin: 0; padding: 10px 0; } .fltrt { float: right; margin-left: 8px; } .fltlft { float: left; margin-right: 8px; } .clearfloat { clear:both; height:0; font-size: 1px; line-height: 0px; } .STYLE3 { font-size: xx-small; color: #999966; } --> </style> <title> Untitled Page </title></head> <body class="thrColFixHdr"> <form name="aspnetForm" method="post" action="default.aspx" id="aspnetForm"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEwMDUyNjYzMjgPZBYCZg9kFgICAw9kFgICAw88KwAJAQAPFgQeCERhdGFLZXlzFgAeC18hSXRlbUNvdW50AghkFhBmD 2QWAgIBDw8WBB4EVGV4dAUG5a2k54usHgtOYXZpZ2F0ZVVybAUafi9hcnRpY2xlLmFzcHg/YXJ0aWNsZUlEPTFkZAIBD2QWAgIBDw8WBB8CBRjmsqHmnInml6DnvJjml6DmlYXnmoTniLEfAwUafi9hcnRpY2xlLmFzcHg/YXJ0aWNsZUlEPTJkZAICD2QWAgIBDw8WBB8CBQzpvJPlkLnoh6rnlLEfAwUafi9hcnRpY2xlLmFzcHg/YXJ0aWNsZUlEPTNkZAIDD2QWAgIBDw8WBB8CBQblir/liKkfAwUafi9hcnRpY2xlLmFzcHg/YXJ0aWNsZUlEPTRkZAIED2QWAgIBDw8WBB8CBQPniLEfAwUafi9hcnRpY2xlLmFzcHg/YXJ0aWNsZUlEPTVkZAIFD2QWAgIBDw8WBB8CBQzpvJPlkLnoh6rnlLEfAwUafi9hcnRpY2xlLmFzcHg/YXJ0aWNsZUlEPTNkZAIGD2QWAgIBDw8WBB8CBQnlpbPlranlrZAfAwUafi9hcnRpY2xlLmFzcHg/YXJ0aWNsZUlEPTZkZAIHD2QWAgIBDw8WBB8CBQ/kuI3lj5HnmoTmg4XkuaYfAwUafi9hcnRpY2xlLmFzcHg/YXJ0aWNsZUlEPTdkZGSwWPnKc69cmrv7vR5KoJ9/RM55iA==" /> </div> <div id="container"> <div id="header"> <table width="100%" border="0" background="image/yanglihaobarner.jpg" style="height: 40px"> <tr> <td></td> </tr> </table> <div id="sidebar2"> <div id="tip" style="font-size:medium;color:#FFCC00;height:400px"> <span style="color: #ccff33; font-size: 16pt;"><a target="_blank" href="Default.aspx">首页</a></span> | <br /> <br /> <span style="color:#9933cc"> <span style="font-size: 16pt"><a target="_blank" href="album.aspx">相册</a></span></span> | <br /> <br /> <span style="color: #cc9933; font-size: 16pt;"><a target="_blank" href="uploadPhotoes.aspx">上传</a></span> | <br /> <br /> <span style="color: #cc9933; font-size: 16pt;"><a target="_blank" href="liuyan.aspx">留言</a></span> | <br /> <br /> <span style="color: #cc9933; font-size: 16pt;"><a target="_blank" href="Login.aspx">聊天</a></span> | <br /> <br /> </div> </div> </div> <div id="sidebar1"> <table width="100" border="0"> <tr> <td><span class="STYLE3">用户名</span></td> <td> <input name="username" type="text" id="username" size="10" /></td> </tr> <tr> <td><span class="STYLE3">密码</span></td> <td><input type="password" id="password" size="10" /></td> </tr> <tr> <td> </td> <td><input type="button" onclick="validate" value="确定" /></td> </tr> </table> <br /> <br /> <table id="ctl00_DataList1" cellspacing="0" border="0" style="border-collapse:collapse;"> <tr> <td> <a id="ctl00_DataList1_ctl00_HyperLink1" href="article.aspx?articleID=1" style="text-decoration:underline;">孤独</a> </td> </tr><tr> <td> <a id="ctl00_DataList1_ctl01_HyperLink1" href="article.aspx?articleID=2" style="text-decoration:underline;">没有无缘无故的爱</a> </td> </tr><tr> <td> <a id="ctl00_DataList1_ctl02_HyperLink1" href="article.aspx?articleID=3" style="text-decoration:underline;">鼓吹自由</a> </td> </tr><tr> <td> <a id="ctl00_DataList1_ctl03_HyperLink1" href="article.aspx?articleID=4" style="text-decoration:underline;">势利</a> </td> </tr><tr> <td> <a id="ctl00_DataList1_ctl04_HyperLink1" href="article.aspx?articleID=5" style="text-decoration:underline;">爱</a> </td> </tr><tr> <td> <a id="ctl00_DataList1_ctl05_HyperLink1" href="article.aspx?articleID=3" style="text-decoration:underline;">鼓吹自由</a> </td> </tr><tr> <td> <a id="ctl00_DataList1_ctl06_HyperLink1" href="article.aspx?articleID=6" style="text-decoration:underline;">女孩子</a> </td> </tr><tr> <td> <a id="ctl00_DataList1_ctl07_HyperLink1" href="article.aspx?articleID=7" style="text-decoration:underline;">不发的情书</a> </td> </tr> </table> </div> <div id="mainContent"> <div style="height: 890px; width: 344px"> <blockquote> <br /><br /> <center><strong>女孩子 </strong> <p>我爱着自由,爱着孤僻。 </p> <p> 在学校,我认识很少的女孩子。 曾经感觉她们会如我想象中的那么热情,又知情达理。 很想知道她们有什么奇怪的想法,深邃的感情。 男女不会像爱情电影中的主人公可以天天躺在缀着玫瑰花的炕上,也不会只有如毛片中机械的亢奋。 </p> <p>我爱走在遥远的后面望着她们的背影,略去她们的妍媸,幻想她们一定有什么秘密的故事。</p> <p>我幼稚地去试着和她们搭讪,像素面的姐姐或妹妹。她们应该会忽视我所有的缺点吧。</p> <p>现在,我才感觉到我想的很可能是错的,或多或少。</p> <p>我有时在她们面前说出有关性这些被忌讳的话题。 她们惊讶地沉默,不知道是否嗤之以鼻过。想去问一问她们对低俗的理解,却心思疲惫。</p> <p>我对于她们也许只是太普通的人,不是爱人,不是兄弟,不是朋友。人似乎只是为了直接的好处或潜在的利益在伪善与高贵中徘徊。</p> </center> </blockquote> </div> </div> <br /> <table width="779" border="0" align="center"> <tr> <td> </td> </tr> <tr> <td> <div align="center"> </div> </td> </tr> </table> <br class="clearfloat" /> <div id="footer"> <table width="100%" border="0"> <tr> <td> </td> </tr> </table> </div> </div> </form> </body> </html> Similar TutorialsI've attached a screenshot showing the way it displays in firefox and the code. How can I get the menu to move up so I don't have such a space? Thank you for your help and this is due in an hour! 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>david2</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <body bgcolor="#FFFFFF"> <!-- DO NOT MOVE! The following AllWebMenus linking code section must always be placed right AFTER the BODY tag--> <!-- ******** BEGIN ALLWEBMENUS CODE FOR menu ******** --> <script type="text/javascript">var MenuLinkedBy="AllWebMenus [4]",awmMenuName="menu",awmBN="730";awmAltUrl="";</script><script charset="UTF-8" src="menu.js" type="text/javascript"></script><script type="text/javascript">awmBuildMenu();</script> <!-- ******** END ALLWEBMENUS CODE FOR menu ******** --> <!-- ImageReady Slices (david2.psd) --> <table id="Table_01" width="901" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="10"> <img id="david_01" src="images/david_01.jpg" width="901" height="41" alt="" /></td> </tr> <tr> <td colspan="7" rowspan="4"> <img id="david_02" src="images/david_02.jpg" width="791" height="110" alt="" /></td> <td> <img id="david_03" src="images/david_03.jpg" width="81" height="24" alt="" /></td> <td colspan="2" rowspan="2"> <img id="david_04" src="images/david_04.jpg" width="29" height="46" alt="" /></td> </tr> <tr> <td> <img id="david_05" src="images/david_05.jpg" width="81" height="22" alt="" /></td> </tr> <tr> <td colspan="2"> <img id="david_06" src="images/david_06.jpg" width="82" height="23" alt="" /></td> <td rowspan="2"> <img id="david_07" src="images/david_07.jpg" width="28" height="64" alt="" /></td> </tr> <tr> <td colspan="2"> <img id="david_08" src="images/david_08.jpg" width="82" height="41" alt="" /></td> </tr> <tr> <td><span id='awmAnchor-menu'> </span></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td colspan="4"> <img id="david_15" src="images/david_15.jpg" width="206" height="38" alt="" /></td> </tr> <tr> <td colspan="10"> <img id="david_16" src="images/david_16.jpg" width="901" height="28" alt="" /></td> </tr> <tr> <td> <img src="images/spacer.gif" width="88" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="115" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="102" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="199" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="99" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="92" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="96" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="81" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="1" height="1" alt="" /></td> <td> <img src="images/spacer.gif" width="28" height="1" alt="" /></td> </tr> </table> <!-- End ImageReady Slices --> </body> </html> Anders I just started learning HTML from through Lynda.com. I ran into a problem of which I cant seem to find what went wrong. This image I horizontally splitted it in 3 parts which needed to resolve in HTML as 1 image. Between each image there now is a horizontal space. This is only the case in Firefox and Google Chrome. In Explorer it works fine. What did I do wrong? <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="images/1.gif" alt="" /></td> </tr> <tr> <td><img src="images/2.gif" alt="" /></td> </tr> <tr> <td><img src="images/3.gif" alt="" /></td> </tr> </table> Thank you. Guys, hello to everyone in this forum. this my first thread rising a question. please clear my doubt. when im adding the <form> or </form> tags in the code it leaves a empty line (ie) an white space. this occurs only in IE, not in firefox. im using the Doctype: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> So guys plz give me a solution to remove the empty line.. -makkal I just have a small formatting issue, that I think is being caused by a dreamweaver template I created, that I need some quick help with. Under the main banner is a space that I want to get rid of, but I can't figure out what's causing it. In my template, the editable area starts with the div right under the banner... so I'm thinking somewhere in there is my issue. Here is a link to the site - www.captaintees.com/graphictees.html Any help is greatly appreciated. OK - I want you you to know, I don't know what I'm doing. But I'm trying to build my web site and I'm just about there but am having one problem. The problem page is he http://www.danielrubio.com/clientlogin.html and he http://www.danielrubio.com/listeningroom.html I can't get the navigation area on the left to occupy the same vertical position as the login form. With the second page I can't get the navigation area on the left to occupy the same vertical position as the links to my MP3's. The reason I set things up this way to start with was to keep the form and the links centered on the page no matter what size window or screen resolution. Here is the code for the first problem page: HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <script language="JavaScript"> function Login(){ var done=0; var username=document.login.username.value; username=username.toLowerCase(); var password=document.login.password.value; password=password.toLowerCase(); if (username=="luckydog" && password=="sunshine") { window.location="http://www.danielrubio.com/heidi/juliexyz.html"; done=1; } <!-- The user above is Julie Rubio 070216 --> if (username=="bighands" && password=="hardwork") { window.location="http://www.danielrubio.com/guest/12345678.html"; done=1; } <!-- The user above is Guest 070216 --> if (username=="member1" && password=="password1") { window.location="page1.html"; done=1; } if (username=="member2" && password=="password2") { window.location="page2.html"; done=1; } if (username=="member3" && password=="password3") { window.location="page3.html"; done=1; } if (done==0) { alert("Invalid login!"); } } // End --> </script> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <meta name="keywords" content="daniel rubio, composer, orchestrator, tuba, new orleans, last days, derringer, sidewalk, second line, music, bmi, garritan, dixieland, theater, jazz, bourbon, imdb"> <meta name="robots" content="index, follow, noarchive"> <meta name="description" content="Daniel Rubio is a composer and orchestrator for theater film and television from New Orleans and a tuba player"> <title>DANIEL RUBIO</title> </head> <body style="color: rgb(0, 0, 0); background-color: rgb(192, 192, 192); height: 646px;" alink="#000099" link="#000099" vlink="#990099"> <table style="text-align: left; font-family: Helvetica,Arial,sans-serif; background-color: transparent; width: 100%; height: 100%;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td colspan="2" rowspan="1" style="text-align: center; width: 100%; height: 96px;"><big><big><big><span style="font-weight: bold;"> </span></big></big></big> <h1 style="font-weight: bold; height: 25px;">D <small>A N I E L</small> R <small>U B I O</small></h1> <big><big><big><small><small>Composer | Orchestrator</small></small></big></big></big></td> </tr> <tr> <td colspan="2" rowspan="1" style="width: 100%; height: 108px;"> <big><big><big><img style="position: absolute; width: 108px; height: 144px; top: 57px; left: 96px;" alt="Photograph of Daniel Rubio" src="../../photogs/DanBW45a.jpg"></big></big></big><font size="+1"> </font> <div style="text-align: center; margin-top: 0px; height: 92px;"><font size="+1"><span style="color: rgb(51, 51, 51);"></span></font><big><span style="color: rgb(51, 51, 51);"><big><small><small><small><br> <br> <big><big><big>C</big>LIENT <big>L</big>OGIN<br> <br> <br> <br> <br> </big></big></small></small></small></big></span></big><big><span style="color: rgb(51, 51, 51);"><big><small><small><small><big><big> <center> <form name="login"> <table style="width: 225px;" border="1" cellpadding="3"> <tbody> <tr> <td colspan="2"> <br> <div =""> <center><font size="+2"><b>Welcome!</b></font></center> </div> </td> </tr> <tr> <td>Username:</td> <td><br> <div style="z-index: 2;"><input name="username" type="text"></div> </td> </tr> <tr> <td>Password:</td> <td><input name="password" type="text"></td> </tr> <tr> <td colspan="2" align="center"><input value="Login!" onclick="Login()" type="button"></td> </tr> </tbody> </table> </form> </center> </big></big></small></small></small></big></span></big></div> </td> </tr> <tr style="color: rgb(51, 0, 153);"> <td style="vertical-align: top; text-align: center; width: 20%; background-color: rgb(153, 153, 153); height: 337px;"><small><big><big> </big></big><br> <a href="http://www.danielrubio.com/index.html">Home</a><br> <br> <a href="http://www.danielrubio.com/clientlogin.html">Client Login</a><br> <br> <a href="http://www.danielrubio.com/listeningroom.html">Listening Room</a><br> <br> <a href="http://www.danielrubio.com/biography.html">Biography</a><br> <br> <a href="http://www.danielrubio.com/news.html">News</a><br> <br> <a href="http://www.danielrubio.com/links.html">Links</a><br> <br> <a href="http://www.danielrubio.com/sitemap.html">Site Map</a><br> <br> <a href="http://www.danielrubio.com/feedback.html">Feedback</a></small></td> <td style="text-align: center; width: 80%; height: 337px;"><br> <div style="position: absolute; left: 240px; top: 377px;"><span style="font-weight: bold;"><span style="color: rgb(0, 0, 0);"></span> </span><br> <span style="font-weight: bold;"></span></div> </td> </tr> <tr> <td colspan="2" rowspan="1" style="text-align: center; width: 100%; background-color: rgb(153, 153, 153); height: 96px;"><span style="font-family: Helvetica,Arial,sans-serif; font-weight: bold;">Copyright © 2006 - </span><span style="font-family: Helvetica,Arial,sans-serif; font-weight: bold;">2007 by </span><a style="font-family: Helvetica,Arial,sans-serif; font-weight: bold;" href="http://www.danielrubio.com/feedback.html">Daniel Rubio</a><span style="font-family: Helvetica,Arial,sans-serif; font-weight: bold;">. All worldwide rights reserved.</span><br style="font-family: Helvetica,Arial,sans-serif; font-weight: bold;"> <span style="font-family: Helvetica,Arial,sans-serif; font-weight: bold;">Second Line Music™ is a trademark of Daniel Rubio.</span><span style="font-family: Helvetica,Arial,sans-serif; font-weight: bold;"><br> </span></td> </tr> </tbody> </table> <span style="font-family: Helvetica,Arial,sans-serif;"> </span> </body> </html> I think that if you help me to understand the correct approach to the first page, I can then apply it to the second page. Thanks for any help, Dan So i'm not very good at this stuff, somehow there is an extra white line below the initial title and the three sections. I know there's a lot of garbage in this code of tags that don't need to be here, this code has been constantly edited and by different people and none of us are experts, so a lot of random tags are left around. Possibly one of them is causing the issue. To simplify things, in this example of my code I have removed all the text and links and what not that someone that visits the site sees with "data data data" as I believe they are irreverent to this issue. Any help would be great!!!! My guess is the issue is in the red section, as this is where the gap is between Code: <center> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder"> <tr><td width="100%" valign="top"> <div class='thead' align='left' style="padding: 5px;"><b>Title</b></div> <table width="100%" border="0" cellpadding="0" cellspacing="1"> <!--- Left Section --> <tr><td class="trow1" width="33%" valign="top"><font color="black"><center><b>Title</b></center></font></center> <hr color="#000000"><font face="verdana" color="000000"></center><u></u><font color="black"> <div style="overflow:auto; width: 310px; height: 276px;"> Data Data Data Data.... <br> </div> </td> <br> </font></a> <br> <!-- Center Section --> </center></td> <td class="trow1" width="33%" valign="top"><center> <font color="black"><b>Title</b></font></center> <hr color="#000000"><font face="verdana" color="000000"></center><center><u></u><font color="black"> <br> Data Data Data.....<br></br> <!-- Right Section --> </center></div></td> </i></b></font></a> </center></td> <td class="trow2" width="33%" valign="top"><center> <font color="black"><b>Title</b></font></font></center> <hr color="#000000"> <center> <br> Data Data Data..... </td></div></table></td></tr> </center> </center </table> Here's a screenshot of the issue on the website: i have a sitecube.com website... i am not as educated as you others so i could not build my own site, and i could not afford a better site. here is the scenario, i have access to change add html code in the meta information? if you visit my site. pasadenawealth.com you can see i added a twiiter widget, a mortgage calculator and a wiki widget. below those widgets you can see the designer websites by sitecube.com 2005-2007.html site i want to remove that, as i feel it lowers the overall look of my site, customer service refuses to remove it.... BUT while i was adding in other html codes in my meta information i once incorrectly entered some html code and i believed it removed it. but after i fixed it, it came back. anyone have any ideas? maybe adding some sort of end code, or do not display anything below code. i am very html illiterate and any help would be greatly appreciated thanks! In IE 7, some of my pages are displaying white space at the top of the page. Some pages show more than others... I cannot seem to figure out why. Two examples: http://labsysgrp.com/contact_us.php http://labsysgrp.com/newsletters_archived.htm Anyone have any thoughts? Thanks! I don't understand why there is white space at the bottom of the page. I am using negatives which one would assume would take away space and not add it. Below is the HTML and CSS codes. If someone could take a look at this and let me know what it is that I need to do to get rid of the white space at the bottom, I would be greatly appreciative. Thanks in advance. McClain 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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Blakeslee - Quality Commercial Dishwashing and Prep Equipment</title> <link rel="stylesheet" href="css/styles.css" type="text/css" /> </head> <body> <div id="header"></div> <div id="nav"></div> <div id="content"> <ul> <li class="premiere"><a href="#"><img src="images/p1.gif" alt="ok" border="none" /></a> <ul> <li class="title"><a href="#">Flight-Type Dishwashers <img src="images/arrow.gif" alt="arrow" border="none" /></a></li> </ul> </li> <li class="primary"><a href="#"><img src="images/Rack_type_dishwasher.gif" alt="ok" border="none" /></a> <ul> <li class="title"><a href="#">Rack-Type Dishwashers <img src="images/arrow.gif" alt="arrow" border="none" /></a></li> </ul> </li> <li class="endProduct"><a href="#"><img src="images/vegetable_peelers.gif" alt="ok" border="none" /></a> <ul> <li class="title"><a href="#">Vegetable Peelers <img src="images/arrow.gif" alt="arrow" border="none" /></a></li> </ul> </li> <li class="primary"><a href="#"><img src="images/door_type_dishwashers.gif" alt="ok" border="none" /></a> <ul> <li class="title"><a href="#">Door-Type Dishwashers <img src="images/arrow.gif" alt="arrow" border="none" /></a></li> </ul> </li> <li class="endProduct"><a href="#"><img src="images/food_slicers.gif" alt="ok" border="none" /></a> <ul> <li class="title"><a href="#">Food Slicers <img src="images/arrow.gif" alt="arrow" border="none" /></a></li> </ul> </li> </ul> <img id="productBg1" src="images/first_row_background.png" /> <div id="clear"></div> <ul class="Hproducts"> <li class="premiere"><a href="#"><img src="images/glass_washers.gif" alt="ok" border="none" /></a> <ul> <li class="title"><a href="#">Glass Washers <img src="images/arrow.gif" alt="arrow" border="none" /></a></li> </ul> </li> <li class="primary"><a href="#"><img src="images/undercounter_dishwashers.gif" alt="ok" border="none" /></a> <ul> <li class="title"><a href="#">Undercounter Dishwashers <img src="images/arrow.gif" alt="arrow" border="none" /></a></li> </ul> </li> <li class="endProduct"><a href="#"><img src="images/planetary_mixers.gif" alt="ok" border="none" /></a> <ul> <li class="title"><a href="#">Planetary Mixers <img src="images/arrow.gif" alt="arrow" border="none" /></a></li> </ul> </li> <li class="primary"><a href="#"><img src="images/pot_utensil_washers.gif" alt="ok" border="none" /></a> <ul> <li class="title"><a href="#">Pot & Utensil Washers <img src="images/arrow.gif" alt="arrow" border="none" /></a></li> </ul> </li> <li class="primary"><a href="#"><img src="images/silver_stainless_burnishers.gif" alt="ok" border="none" /></a> <ul> <li class="title"><a href="#">Silver/Stainless Burnishers <img src="images/arrow.gif" alt="arrow" border="none" /></a></li> </ul> </li> </ul> </div> <img id="productBg2" src="images/second_row_background.png" /> </body> </html> CSS Code: body{ margin-right: 10%; margin-left: 10%;} #content,#nav,#productBg1,#productBg2,.Hproducts,.premiere,.primary,.title{ position:relative;} #header{ background:url(../images/header.gif) no-repeat; width: 100%; height: 496px;} #nav{ width:450px; height:60px; background-color:#000000; top: -220px; left:250px;} /*************************************************/ /******************* CONENT ***********************/ #content{ width: 1100px; top: -200px; margin-left: 50px;} #content ul{ display:inline;} #content ul li{ display:inline; list-style-type:none;} #content ul li a{ text-decoration:none; color: #1a4d9e;} #productBg1{ top: -110px; left:40px; z-index: -1;} #productBg2{ top: -410px; left:90px; z-index: -2;} .Hproducts{ top: -100px;} .premiere{ margin-left: 15px;} .endProduct{ margin-left: -180px;} .primary{ margin-left: -140px;} .title{ right: 200px; top:10px;} Hi all, I'm not an html guru by any standards. I have a problem where my page shows a huge gap between the movie and comments area. Can anyone advise on this? You'll need to be logged in to see this problem: Thanks in advance for any help on this. htmlmonkey Hi, Please can someone have a look at the photo's page on my site here http://www.leeds-cityscape.co.uk/. The page is made up of a frame, so that I can have an advert at the top of the page that scrolls down as the visitor scrolls down. The problem is that when you go to the page there is a large gap at the top of the page. I have checked the code, but I cannot see what could be causing this. Any help would be appreciated. For some reason, I have a lot of extra space at the top of my page. What could be causing this and how do I fix it? I taught myself HTML, so I'm not the greatest at it, but I get by. My problem is that on a page I am currently working on (and it's happened to me in the past as well) there is a small space at the bottom of the page that shouldn't be there. It's weird because it's there when the page first loads, but when I refresh it goes away. But why is it there in the first place. There's no stray <br> tags or anything and this is very basic HTML code, including tables. I don't see any other sites with this problem, what in the world could it be? I just asked a friend, and I don't think he's seeing it. The space is very noticeable. It's kind of embarrassing, a wrestling related page, but I'll include the link. I am using Internet Explorer, by the way. And I just noticed than when I click the link in my bookmarks, and hit "open in new tab", the space isn't there. Just odd. Anyway, here it is: http://steenerico.fwrestling.com/ Well, that link won't do any good, because apparently when it opens in a new window, the space doesn't show up. Argh. Try opening a new browser window and pasting the link into the address bar. Reference: http://investorsconnection.net So if you load it up in FF, you see that there is a stripe that goes across the bottom of the page and it is flush to the bottom of the window. That is how it is supposed to be. In IE there is a space below that greyish stripe, and it's not supposed to be there. I can't figure out why! The stripe is div id "footer_bg". Thank you for the help! The first part , this page i need to put an widesky ad on both sides of the image & also want something that will rescale image to fit page as i need to fit in large images on the page , can this be done people? Hi on one of my websites there is just to much dead space at bottom of page and it makes people have to scroll down to see the whole page . how do i get rid of that blank space at bottom? i have tried just deleting but it doesnt want to delete it . i think there is a code error or two , im gonna try to post the html code of site here .. Thanks for help in advance . CODE: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Exclusive - Template</TITLE> <META http-equiv=Content-Type content="text/html; charset=utf-8"> <STYLE type=text/css>#mainWrapper { MARGIN-TOP: 0px; FONT-SIZE: 12px; MARGIN-LEFT: auto; WIDTH: 732px; COLOR: #333333; MARGIN-RIGHT: auto; FONT-FAMILY: Arial, Helvetica, sans-serif } BODY { MARGIN-TOP: 0px; BACKGROUND-IMAGE: url(repeater-orange.jpg); BACKGROUND-REPEAT: repeat-x } #video-area { BACKGROUND-IMAGE: url(../ExclusiveTemplate/HTML/images/video-area-bg.jpg); BACKGROUND-REPEAT: no-repeat; HEIGHT: 385px } #footer { BORDER-TOP: #cccccc 1px dotted; MARGIN-TOP: 20px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px } .style1 { FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #666666 } </STYLE> <META content="Created with Trellian WebPage" name=description> <META content="MSHTML 6.00.2900.6036" name=GENERATOR></HEAD> <BODY> <DIV align=center> <TABLE style="Z-INDEX: 101; LEFT: 331px; WIDTH: 589px; POSITION: absolute; TOP: 103px; HEIGHT: 351px" height=351 cellSpacing=0 cellPadding=0 width=589 border=0> <TBODY> <TR> <TD><IMG style="WIDTH: 596px; HEIGHT: 334px" height=300 alt="" hspace=0 src="7fa10df874.jpg" width=600 border=0></TD></TR></TBODY></TABLE> <DIV id=mainWrapper style="WIDTH: 733px; HEIGHT: 1101px"> <DIV id=header align=left><IMG style="WIDTH: 732px; HEIGHT: 87px" height=84 alt="" hspace=0 src="header-orange.jpg" width=732 border=0> </DIV> <DIV align=center><IMG height=385 alt="" hspace=0 src="video-area-bg.jpg" width=732 border=0></DIV> <P align=center><FONT face=Default size=2><FONT face=Impact><FONT size=4><FONT face="Gill Sans MT" color=#ff0000><STRONG>Discover The Secret $35K/Month System That <U>WILL</U> Separate You From The Pack!</STRONG></FONT> <BR></FONT></FONT><FONT size=3><FONT face="Tw Cen MT"><FONT face="Lucida Sans Unicode" color=#000000 size=2>You Will Be Getting Instant Access To The Full 1on1 Training Course That <BR>Others Have Paid Upto $1,997 To Use For <U>FREE</U>! This Wont Last Long, Sign Up Today...</FONT></FONT></FONT><BR></FONT><IMG style="Z-INDEX: 102; LEFT: 374px; POSITION: absolute; TOP: 721px" height=111 alt="" hspace=0 src="arrow-hand.JPG" width=128 border=0> <SCRIPT src="http://www.jotform.com/min/g=jotform&3.1.9" type=text/javascript></SCRIPT> <SCRIPT type=text/javascript> JotForm.init(function(){ $('input_7').hint('ex: myname@example.com'); }); </SCRIPT> <LINK href="http://www.jotform.com/css/styles/form.css?v3.1.9" type=text/css rel=stylesheet><LINK href="http://www.jotform.com/css/styles/jottheme.css" type=text/css rel=stylesheet><LINK href="http://www.jotform.com/css/calendarview.css?v3.1.9" type=text/css rel=stylesheet> <STYLE type=text/css>.form-label { WIDTH: 50px! important } .form-label-left { WIDTH: 50px! important } .form-line { PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px } .form-label-right { WIDTH: 50px! important } .form-all { FONT-SIZE: 12px; BACKGROUND: #ffffff; WIDTH: 250px; COLOR: #000000! important; FONT-FAMILY: "Trebuchet MS" } </STYLE> <FORM class=jotform-form id=3155437226 name=form_3155437226 accept-charset=utf-8 action=http://www.jotform.com/submit.php method=post><INPUT type=hidden value=3155437226 name=formID> </P> <DIV class=form-all> <DIV align=center> <UL class=form-section> <DIV align=left> <LI class=form-line id=id_9><LABEL class=form-label-right id=label_9 for=input_9>First Name<SPAN class=form-required>*</SPAN> </LABEL> <DIV class=form-input id=cid_9><INPUT class="form-textbox validate[required]" id=input_9 size=30 name=q9_firstName9> </DIV></LI></DIV> <LI class=form-line id=id_7><LABEL class=form-label-right id=label_7 for=input_7>E-mail<SPAN class=form-required>*</SPAN> </LABEL> <DIV class=form-input id=cid_7><INPUT class="form-textbox validate[required, Email]" id=input_7 size=30 name=q7_email7> </DIV></LI> <LI class=form-line id=id_8><LABEL class=form-label-right id=label_8 for=input_8>Phone Number<SPAN class=form-required>*</SPAN> </LABEL> <DIV class=form-input id=cid_8><SPAN class=form-sub-label-container><INPUT class="form-textbox validate[required]" id=input_8_area size=3 name=q8_phoneNumber[area]> - <LABEL class=form-sub-label id=sublabel_area for=input_8_area>Area Code </LABEL></SPAN><SPAN class=form-sub-label-container><INPUT class="form-textbox validate[required]" id=input_8_phone size=8 name=q8_phoneNumber[phone]> <LABEL class=form-sub-label id=sublabel_phone for=input_8_phone>Phone Number </LABEL></SPAN></DIV> <DIV align=left></DIV></LI> <LI class=form-line-column id=id_2 style="WIDTH: 272px; HEIGHT: 168px"> <DIV class=form-input-wide id=cid_2 align=center> <P class=form-buttons-wrapper style="TEXT-ALIGN: center" align=center><INPUT style="WIDTH: 268px; HEIGHT: 69px" type=image height=69 alt=Submit width=280 src="get-instant-access.jpg" size=19 border=0></P> <DIV class=form-buttons-wrapper style="TEXT-ALIGN: center"><STRONG><FONT size=1>Primary Goal: Create The Next 20 "Internet Big Shots" This Year! (Your Background, Experience, Online Skills, Looks, Doesnt Matter...)</FONT></STRONG></DIV></DIV></LI></UL></DIV> <LI style="DISPLAY: none">Should be Empty: <INPUT name=website> <UL></UL></LI></DIV></DIV><INPUT id=simple_spc type=hidden value=3155437226 name=simple_spc> <SCRIPT type=text/javascript> document.getElementById("si" + "mple" + "_spc").value = "3155437226-3155437226"; </SCRIPT> </FORM><A href="index-orange.html#"></A><IMG style="Z-INDEX: 103; LEFT: 775px; POSITION: absolute; TOP: 722px" height=111 alt="" hspace=0 src="arrow-hand1.JPG" width=128 border=0> <TABLE style="Z-INDEX: 104; LEFT: 381px; POSITION: absolute; TOP: 902px" height=16 cellSpacing=0 cellPadding=0 width=506 border=0> <TBODY> <TR> <TD> <P class="style21 style1" align=center>Michael´s Millionaire Mentoring - Home - Privacy - Disclaimer - All Rights Reserved 2010</P></TD></TR></TBODY></TABLE></DIV> <DIV></DIV></BODY></HTML> Thanks again for help if you can.. Michael Like if I just wanted an image Hello Friends, I need a tool which can remove HTML comments from an HTML page. I don't want to create a regular expression to remove HTML comments rather I need a tool which should have command line support also so that it can be integrated with build process. Please advice. Thank you. can someone help me figure out why my website is loading with such a large empty space at the top of the browser as seen here : www.getbetterresults.net. I'm a complete noob with this stuff so be gentle. ;-) Any help would be greatly appreciated. Here's my code: HTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>GetBetterResults</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .style1 { font-size: 14px; font-weight: normal; font-family: "Times New Roman", Times, serif; font-style: normal; background-image: none; letter-spacing: normal; } .style7 { color: #CCCCCC; font-size: 10px; } --> </style> <script language="JavaScript" type="text/JavaScript"> <!-- 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_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_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('Images/Products_RO_button.jpg','Images/Seminars_RO_button.jpg','Images/Coding_RO_button.jpg','Images/Marketing_RO_button.jpg','Images/KennedyTechnique_RO_button.jpg','Images/LearnLaser_RO_button.jpg','Images/PatientEducation_RO_button.jpg','Images/Finding_A_DTS_out_of_state_RO_button.jpg','Images/ContactUs_RO_button.jpg','Images/AboutUs_RO_button.jpg','Images/Links_RO_button.jpg','Images/Testimonials_RO_button.jpg')"> <table width="860" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF"> <tr> <th width="74" scope="col"><img src="Images/LeftGreyTrim.jpg" width="74" height="166"></th><br> <th colspan="4" scope="col"><img src="Images/banner.jpg" width="712" height="166" align="middle"></th><br> <th width="74" scope="col"><img src="Images/RightGreyTrim.jpg" width="74" height="166"></th><br> </tr> <tr> <td rowspan="11"><img src="Images/BottomLeftTrimGrey.jpg" width="74" height="429"></td><br> <td width="135"><img src="Images/Home_button.jpg" width="123" height="39"></td><br> <td colspan="3" rowspan="3"><div align="center" class="style1"><img src="Images/welcome.jpg" width="574" height="108"></td><br> <td rowspan="14"><img src="Images/BottomRightTrimGrey.jpg" width="74" height="565"></td><br> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('Image1','','Images/Products_RO_button.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/Products_button.jpg" name="Image1" width="123" height="39" border="0" usemap="#Image1Map" id="Image1"></a></td> <br> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('Image2','','Images/Seminars_RO_button.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/Seminars_button.jpg" name="Image2" width="123" height="39" border="0" usemap="#Image2Map" id="Image2"></a></td> <br> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('Image3','','Images/Coding_RO_button.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/Coding_button.jpg" name="Image3" width="123" height="39" border="0" usemap="#Image3Map" id="Image3"></a></td> <br> <td width="237" rowspan="8"><img src="Images/KDTlogo.jpg" width="237" height="167"></td><br> <td width="295" rowspan="8"><div align="center"></div> <textarea name="textarea" cols="43" rows="16" wrap="VIRTUAL" class="style1">blah blah blah .</textarea> </td> <td width="45" rowspan="8"> </td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('Image4','','Images/Marketing_RO_button.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/Marketing_button.jpg" name="Image4" width="123" height="39" border="0" id="Image4"></a></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('Image5','','Images/KennedyTechnique_RO_button.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/KennedyTechnique_button.jpg" name="Image5" width="123" height="39" border="0" usemap="#Image5Map" id="Image5"></a></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('Image6','','Images/LearnLaser_RO_button.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/LearnLaser_button.jpg" name="Image6" width="123" height="39" border="0" usemap="#Image6Map" id="Image6"></a></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('Image7','','Images/PatientEducation_RO_button.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/PatientEducation_button.jpg" name="Image7" width="123" height="39" border="0" usemap="#Image7Map" id="Image7"></a></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('Image8','','Images/Finding_A_DTS_out_of_state_RO_button.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/Finding_A_DTS_out_of_state_button.jpg" name="Image8" width="123" height="39" border="0" usemap="#Image8Map" id="Image8"></a></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('Image9','','Images/ContactUs_RO_button.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/ContactUs_button.jpg" name="Image9" width="123" height="39" border="0" usemap="#Image9Map" id="Image9"></a></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('Image10','','Images/AboutUs_RO_button.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/AboutUs_button.jpg" name="Image10" width="123" height="39" border="0" usemap="#Image10Map" id="Image10"></a></td> </tr> <tr> <td rowspan="3"><img src="Images/BottomLeftTrimGrey.jpg" width="74" height="136"></td> <td><a href="javascript:;" onMouseOver="MM_swapImage('Image12','','Images/Testimonials_RO_button.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/Testimonials_button.jpg" name="Image12" width="123" height="39" border="0" id="Image12"></a></td> <td colspan="3" rowspan="3"><img src="Images/HelpDesk.jpg" width="563" height="132" border="0" usemap="#Map"><map name="Map"><area shape="rect" coords="138,51,306,64" href="mailto:helpdesk@getbetterresults.net"></map></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('Image11','','Images/Links_RO_button.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/Links_button.jpg" name="Image11" width="123" height="39" border="0" id="Image11"></a></td> </tr> <tr> <td><img src="Images/BottomLeftTrimBlue.jpg" width="123" height="58"></td> </tr> <tr> <td><img src="Images/bottom_left_corner_trim_grey.jpg" width="29" height="54" align="right"></td> <td><img src="Images/bottom_left_corner_trim_blue.jpg" width="135" height="54"></td> <td colspan="2"><img src="Images/bottom_trim_blueandgrey.jpg" width="532" height="54"></td> <td><img src="Images/Bottom_Right_Trim1.jpg" width="45" height="54"></td> <td><img src="Images/bottom_right_corner_trim_grey.jpg" width="29" height="54"></td> </tr> <tr> <td height="74"> </td> <td colspan="4"><div align="center"><p align="left" class="style7">Disclaimer: This website is independently owned and operated. The information contained herein does not constitute medical or legal advice, and does not represent the views or opinions of any dealer or manufacturer. Ultimate responsibility lies with the clinician to make medical decisions with in the scope of their respective licensure, and as governed by local, state, and federal regulations.</p><p align="left"> </p></div></td> <td> </td> </tr> </table> </body> </html> i almost went crazy trying to troubleshoot this one... thought i'd share. HTML Code: <style type=text/css> a:link {font-family:Arial, Helvetica, sans-serif; font-size:12px;} </style> <table width="200" border="0" cellspacing="0" cellpadding="0"><tr> <td width="100" valign="top"> <a href="link">Sample text </a> <td width="100" valign="top"> <a href="link">Sample text</a> </td></tr></table> Turns out a "space" at the end of the link text pushes the text upwards slightly. Simply remove the space (or add on to the other line) or use the space code [ ] The css also plays a part, this doesn't appear happen when text is "unformatted" |