Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Aug 2012
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    LOOKS MESSED UP IN internetExplorer

    hi,
    a website I am trying to build looks fine unless viewed in INTERNT EXP.. I have a header, footer, and 3 columns. For some reason it takes the image in my main column and throws it Down a bunch of spaces in IE. this doesnt occur in dreamwaeavers design view EITHER

  • #2
    Regular Coder
    Join Date
    Dec 2010
    Posts
    424
    Thanks
    22
    Thanked 56 Times in 56 Posts
    If you want some help, you need to post some code....a screen shot....a link to your site...anything for us to see and fix the site.

    Also what version of IE, older versions of IE all have different issues.

  • #3
    New Coder
    Join Date
    Aug 2012
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ii'm new to boards, site isn't live yety.
    its version 9 of IE im refering to.. how doi include a screen shot pic with no URL?

    HERE IS the code on my screwey index page
    PHP Code:
    <meta name="keywords" content="AAAPlumbing, AAAPlumbingInc, Master Plumber" />
    <!
    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>AAA Plumbing Inc</title>
    <
    style type="text/css"
    <!-- 
    body  {
        
    font100VerdanaArialHelveticasans-serif;
        
    background#666666;
        
    margin0/* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
        
    padding0;
        
    text-aligncenter/* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
        
    color#000000;
        
    background-color#000;
    }

    /* Tips for Elastic layouts 
    1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
    2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
    3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
    */
    .thrColElsHdr #container {
        
    width46em;  /* this width will create a container that will fit in an 800px browser window if text is left at browser default font sizes */
        
    background#FFFFFF;
        
    margin0 auto/* the auto margins (in conjunction with a width) center the page */
        
    border1px solid #000000;
        
    text-alignleft/* this overrides the text-align: center on the body element. */
        
    background-imageurl(pics/bg.gif);

    .
    thrColElsHdr #header {
        
    background#DDDDDD;
        
    padding0 10px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
        
    background-imageurl(pics/bg.gif);

    .
    thrColElsHdr #header h1 {
        
    margin0/* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
        
    padding10px 0/* using padding instead of margin will allow you to keep the element away from the edges of the div */
    }

    /* Tips for sidebar1:
    1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
    2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width. 
    3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".thrColElsHdr #sidebar1 p" rule.
    */
    .thrColElsHdr #sidebar1 {
        
    floatleft;
        
    width6em/* since this element is floated, a width must be given */
        
    background#EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
        
    padding15px 0/* top and bottom padding create visual space within this div */
        
    margin-left20px;
        
    background-imageurl(pics/bg.gif);
        
    margin-top10em;
    }
    .
    thrColElsHdr #sidebar2 {
        
    floatright;
        
    width11.5em/* since this element is floated, a width must be given */
        
    background#EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
        
    padding15px 0/* top and bottom padding create visual space within this div */
        
    background-imageurl(pics/bg.gif);
    }
    .
    thrColElsHdr #sidebar1 h3, .thrColElsHdr #sidebar1 p, .thrColElsHdr #sidebar2 p, .thrColElsHdr #sidebar2 h3 {
        
    margin-left10px/* the left and right margin should be given to every element that will be placed in the side columns */
        
    margin-right10px;
    }

    /* Tips for mainContent:
    1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
    2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
    3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
    4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
    */
    .thrColElsHdr #mainContent {
        
    margin0 13em 0 10em/* the right margin can be given in ems or pixels. It creates the space down the right side of the page. */
        
    background-imageurl(pics/bg.gif);
        
    widthauto;

    .
    thrColElsHdr #footer {
        
    padding0 10px/* this padding matches the left alignment of the elements in the divs that appear above it. */
        
    background:#DDDDDD;
        
    background-imageurl(pics/bg.gif);
        
    border-top3em;

    .
    thrColElsHdr #footer p {
        
    margin0/* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
        
    padding10px 0/* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    }

    /* Miscellaneous classes for reuse */
    .fltrt /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
        
    floatright;
        
    margin-left8px;
    }
    .
    fltlft /* this class can be used to float an element left in your page */
        
    floatleft;
        
    margin-right8px;
    }
    .
    clearfloat /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
        
    clear:both;
        
    height:0;
        
    font-size1px;
        
    line-height0px;
    }
    --> 
    </
    style><!--[if IE]>
    <
    style type="text/css"
    /* place css fixes for all versions of IE in this conditional comment */
    .thrColElsHdr #sidebar1, .thrColElsHdr #sidebar2 { padding-top: 30px; }
    .thrColElsHdr #mainContent { zoom: 1; padding-top: 15px; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <
    script type="text/javascript">
    <!--
    function 
    MM_preloadImages() { //v3.0
      
    var d=document; if(d.images){ if(!d.MM_pd.MM_p=new Array();
        var 
    i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0i<a.lengthi++)
        if (
    a[i].indexOf("#")!=0){ d.MM_p[j]=new Imaged.MM_p[j++].src=a[i];}}
    }

    function 
    MM_findObj(nd) { //v4.01
      
    var p,i,x;  if(!dd=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        
    d=parent.frames[n.substring(p+1)].documentn=n.substring(0,p);}
      if(!(
    x=d[n])&&d.allx=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(!
    && d.getElementByIdx=d.getElementById(n); return x;
    }

    function 
    MM_nbGroup(eventgrpName) { //v6.0
      
    var i,img,nbArr,args=MM_nbGroup.arguments;
      if (
    event == "init" && args.length 2) {
        if ((
    img MM_findObj(args[2])) != null && !img.MM_init) {
          
    img.MM_init trueimg.MM_up args[3]; img.MM_dn img.src;
          if ((
    nbArr document[grpName]) == nullnbArr document[grpName] = new Array();
          
    nbArr[nbArr.length] = img;
          for (
    i=4args.length-1i+=2) if ((img MM_findObj(args[i])) != null) {
            if (!
    img.MM_upimg.MM_up img.src;
            
    img.src img.MM_dn args[i+1];
            
    nbArr[nbArr.length] = img;
        } }
      } else if (
    event == "over") {
        
    document.MM_nbOver nbArr = new Array();
        for (
    i=1args.length-1i+=3) if ((img MM_findObj(args[i])) != null) {
          if (!
    img.MM_upimg.MM_up img.src;
          
    img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
          
    nbArr[nbArr.length] = img;
        }
      } else if (
    event == "out" ) {
        for (
    i=0document.MM_nbOver.lengthi++) {
          
    img document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn img.MM_up; }
      } else if (
    event == "down") {
        
    nbArr document[grpName];
        if (
    nbArr)
          for (
    i=0nbArr.lengthi++) { img=nbArr[i]; img.src img.MM_upimg.MM_dn 0; }
        
    document[grpName] = nbArr = new Array();
        for (
    i=2args.length-1i+=2) if ((img MM_findObj(args[i])) != null) {
          if (!
    img.MM_upimg.MM_up img.src;
          
    img.src img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
          
    nbArr[nbArr.length] = img;
      } }
    }
    //-->
    </script>
    <meta name="Keywords" content="water heaters, faucets, toilets, in-house services  for all your plumbing needs, repipes, backflow testing, Charlotte Harbor, Charlotte Park, Cleveland, Harbor Heights, Manasota, Sarasota county, Charlotte county
    Key, Port Charlotte, Punta Gorda, Punta Gorda Isles, Rotunda, North Port, Venice, South Venice Warm Mineral Springs" />
    <meta name="Description" content="For all your plumbing needs, Master plumber" />
    </head>

    <body class="thrColElsHdr" onLoad="MM_preloadImages('pics/home-btnD.png','pics/home-btnU.png','pics/services-btnD.png','pics/services-btnU.png','pics/links-btnD.png','pics/links-btnU.png')">
    <p>&nbsp;</p>
    <div id="container">
      <div id="header"><table width="100%">
      <tr>
        <td align="center"><h3><img src="pics/headlogo.png" alt="logo" width="350" height="203"  /><br />
          Contact Mike DioGuardi <br  />(941)629-7177</h3></td>
        <th scope="col"><i>"For all your plumbing needs"</i><br /><br /><br /> </th>
      </tr>
    </table>

        
        
      <!-- end #header --></div>
      <div id="sidebar1">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><a href="index.html" target="_top" onClick="MM_nbGroup('down','group1','home','pics/home-btnD.png',1)" onMouseOver="MM_nbGroup('over','home','pics/home-btnU.png','pics/home-btnU.png',1)" onMouseOut="MM_nbGroup('out')"><img src="pics/home-btnD.png" alt="home" name="home" width="114" height="36" border="0" id="home" onload="MM_nbGroup('init','group1','home','pics/home-btnD.png',1)" /></a></td>
          </tr>
          <tr>
            <td><a href="services.html" target="_top" onClick="MM_nbGroup('down','group1','services','pics/services-btnD.png',1)" onMouseOver="MM_nbGroup('over','services','pics/services-btnU.png','pics/services-btnU.png',1)" onMouseOut="MM_nbGroup('out')"><img src="pics/services-btnD.png" alt="services" name="services" width="114" height="36" border="0" id="services" onload="MM_nbGroup('init','group1','services','pics/services-btnD.png',1)" /></a></td>
          </tr>
          <tr>
            <td><a href="links.html" target="_top" onClick="MM_nbGroup('down','group1','links','pics/links-btnD.png',1)" onMouseOver="MM_nbGroup('over','links','pics/links-btnU.png','pics/links-btnU.png',1)" onMouseOut="MM_nbGroup('out')"></a></td>
          </tr>
        </table>
        <!-- end #sidebar1 -->
      </div>
      <div id="sidebar2">
       <center>  <h3>&nbsp;</h3>
         <h3>&nbsp;</h3>
         <h3>&nbsp;</h3>
         
         <h3>Find US on:</h3>
         <p><a href="https://www.facebook.com/pages/AAA-Plumbing-Inc/376994392358973" target="blank"><img src="pics/facebook.png" width="55" height="55" alt="FB" /></a></p>
         <p><a href="http://www.linkedin.com/pub/mike-dioguardi/53/88/a6b" target="blank"><img src="pics/linkedinPNGlogo.png" width="55" height="55" alt="linkedin" /></a></p>
       </center>
      <!-- end #sidebar2 --></div>
      <div id="mainContent">
        <table width="92%" cellpadding="5">
          <tr>
            <td><img src="pics/sink1.jpg" width="410" height="298" alt="sink" /></td>
          </tr>
          <tr>
            <td align="center"><b>We Service:</b> Charlotte Harbor, Charlotte Park, Cleveland, Harbor Heights, Manasota Key, North Port, Port Charlotte, Punta Gorda, Punta Gorda Isles, Rotunda, South Venice, Venice,&nbsp;&nbsp;&nbsp; Warm Mineral Springs</td>
          </tr>
        </table>
       
    <!-- end #mainContent --></div>
        <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
     <p>&nbsp;</p><p>&nbsp;</p>
       <div id="footer"><table width="100%">
      <tr>
        <td align="center">Master Plumbing License # CFC057739</td>
      </tr>
    </table>

      
      
      <!-- end #footer --></div>
    <!-- end #container --></div>
    </body>
    </html> 

  • #4
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    Your DOCTYPE declaration should be the very first line: this can cause IE to enter quirks mode.

    Your meta tags should occur together after the opening 'head' tag, not after styles or scripts.

    Commenting out <!-- of code/javascript is not required, and the 'center' tag no longer exists.
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS

  • #5
    New Coder
    Join Date
    Aug 2012
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i followed your 1st 2 suggestions.. not sure about the center tag alternatives, but maybe i should leave them for older browsers

    the main sink pic still appears way down too far if only i could include screen shots
    thanks 4 assisting


    <!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 name="Keywords" content="AAAPlumbing, AAAPlumbingInc, water heaters, faucets, toilets, in-house services for all your plumbing needs, repipes, backflow testing, Charlotte Harbor, Charlotte Park, Cleveland, Harbor Heights, Manasota, Sarasota county, Charlotte county
    Key, Port Charlotte, Punta Gorda, Punta Gorda Isles, Rotunda, North Port, Venice, South Venice Warm Mineral Springs" />
    <meta name="Description" content="For all your plumbing needs, Master plumber" />

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>AAA Plumbing Inc</title>
    <style type="text/css">
    <!--
    body {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: #666666;
    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;
    background-color: #000;
    }

    /* Tips for Elastic layouts
    1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
    2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
    3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
    */
    .thrColElsHdr #container {
    width: 46em; /* this width will create a container that will fit in an 800px browser window if text is left at browser default font sizes */
    background: #FFFFFF;
    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. */
    background-image: url(pics/bg.gif);
    }
    .thrColElsHdr #header {
    background: #DDDDDD;
    padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
    background-image: url(pics/bg.gif);
    }
    .thrColElsHdr #header h1 {
    margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
    padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    }

    /* Tips for sidebar1:
    1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
    2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width.
    3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".thrColElsHdr #sidebar1 p" rule.
    */
    .thrColElsHdr #sidebar1 {
    float: left;
    width: 6em; /* since this element is floated, a width must be given */
    background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 0; /* top and bottom padding create visual space within this div */
    margin-left: 20px;
    background-image: url(pics/bg.gif);
    margin-top: 10em;
    }
    .thrColElsHdr #sidebar2 {
    float: right;
    width: 11.5em; /* since this element is floated, a width must be given */
    background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 0; /* top and bottom padding create visual space within this div */
    background-image: url(pics/bg.gif);
    }
    .thrColElsHdr #sidebar1 h3, .thrColElsHdr #sidebar1 p, .thrColElsHdr #sidebar2 p, .thrColElsHdr #sidebar2 h3 {
    margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
    margin-right: 10px;
    }

    /* Tips for mainContent:
    1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
    2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div. No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
    3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
    4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
    */
    .thrColElsHdr #mainContent {
    margin: 0 13em 0 10em; /* the right margin can be given in ems or pixels. It creates the space down the right side of the page. */
    background-image: url(pics/bg.gif);
    width: auto;
    }
    .thrColElsHdr #footer {
    padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
    background:#DDDDDD;
    background-image: url(pics/bg.gif);
    border-top: 3em;
    }
    .thrColElsHdr #footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
    padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    }

    /* Miscellaneous classes for reuse */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
    }
    .fltlft { /* this class can be used to float an element left in your page */
    float: left;
    margin-right: 8px;
    }
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
    }
    -->
    </style><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .thrColElsHdr #sidebar1, .thrColElsHdr #sidebar2 { padding-top: 30px; }
    .thrColElsHdr #mainContent { zoom: 1; padding-top: 15px; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <script 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_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_nbGroup(event, grpName) { //v6.0
    var i,img,nbArr,args=MM_nbGroup.arguments;
    if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
    img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
    if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
    nbArr[nbArr.length] = img;
    for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
    if (!img.MM_up) img.MM_up = img.src;
    img.src = img.MM_dn = args[i+1];
    nbArr[nbArr.length] = img;
    } }
    } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
    if (!img.MM_up) img.MM_up = img.src;
    img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
    nbArr[nbArr.length] = img;
    }
    } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
    img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
    } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
    for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
    if (!img.MM_up) img.MM_up = img.src;
    img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
    nbArr[nbArr.length] = img;
    } }
    }
    //-->
    </script>

    </head>

    <body class="thrColElsHdr" onLoad="MM_preloadImages('pics/home-btnD.png','pics/home-btnU.png','pics/services-btnD.png','pics/services-btnU.png','pics/links-btnD.png','pics/links-btnU.png')">
    <p>&nbsp;</p>
    <div id="container">
    <div id="header"><table width="100%">
    <tr>
    <td align="center"><h3><img src="pics/headlogo.png" alt="logo" width="350" height="203" /><br />
    Contact Mike DioGuardi <br />(941)629-7177</h3></td>
    <th scope="col"><i>"For all your plumbing needs"</i><br /><br /><br /> </th>
    </tr>
    </table>



    <!-- end #header --></div>
    <div id="sidebar1">
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td><a href="index.html" target="_top" onClick="MM_nbGroup('down','group1','home','pics/home-btnD.png',1)" onMouseOver="MM_nbGroup('over','home','pics/home-btnU.png','pics/home-btnU.png',1)" onMouseOut="MM_nbGroup('out')"><img src="pics/home-btnD.png" alt="home" name="home" width="114" height="36" border="0" id="home" onload="MM_nbGroup('init','group1','home','pics/home-btnD.png',1)" /></a></td>
    </tr>
    <tr>
    <td><a href="services.html" target="_top" onClick="MM_nbGroup('down','group1','services','pics/services-btnD.png',1)" onMouseOver="MM_nbGroup('over','services','pics/services-btnU.png','pics/services-btnU.png',1)" onMouseOut="MM_nbGroup('out')"><img src="pics/services-btnD.png" alt="services" name="services" width="114" height="36" border="0" id="services" onload="MM_nbGroup('init','group1','services','pics/services-btnD.png',1)" /></a></td>
    </tr>
    <tr>
    <td><a href="links.html" target="_top" onClick="MM_nbGroup('down','group1','links','pics/links-btnD.png',1)" onMouseOver="MM_nbGroup('over','links','pics/links-btnU.png','pics/links-btnU.png',1)" onMouseOut="MM_nbGroup('out')"></a></td>
    </tr>
    </table>
    <!-- end #sidebar1 -->
    </div>
    <div id="sidebar2">
    <center> <h3>&nbsp;</h3>
    <h3>&nbsp;</h3>
    <h3>&nbsp;</h3>

    <h3>Find US on:</h3>
    <p><a href="https://www.facebook.com/pages/AAA-Plumbing-Inc/376994392358973" target="blank"><img src="pics/facebook.png" width="55" height="55" alt="FB" /></a></p>
    <p><a href="http://www.linkedin.com/pub/mike-dioguardi/53/88/a6b" target="blank"><img src="pics/linkedinPNGlogo.png" width="55" height="55" alt="linkedin" /></a></p>
    </center>
    <!-- end #sidebar2 --></div>
    <div id="mainContent">
    <table width="92%" cellpadding="5">
    <tr>
    <td><img src="pics/sink1.jpg" width="410" height="298" alt="sink" /></td>
    </tr>
    <tr>
    <td align="center"><b>We Service:</b> Charlotte Harbor, Charlotte Park, Cleveland, Harbor Heights, Manasota Key, North Port, Port Charlotte, Punta Gorda, Punta Gorda Isles, Rotunda, South Venice, Venice,&nbsp;&nbsp;&nbsp; Warm Mineral Springs</td>
    </tr>
    </table>

    <!-- end #mainContent --></div>
    <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
    <p>&nbsp;</p><p>&nbsp;</p>
    <div id="footer"><table width="100%">
    <tr>
    <td align="center">Master Plumbing License # CFC057739</td>
    </tr>
    </table>



    <!-- end #footer --></div>
    <!-- end #container --></div>
    </body>
    </html>

  • #6
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    You should edit your previous post to wrap the code in [ CODE ] [ / CODE ] blocks.

    If you reduce the width of your image it fixes it, but this doesn't explain why. If you want to use this as a solution then you should use an image editor to reduce, or crop, the image.
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS

  • #7
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    831
    Thanks
    10
    Thanked 79 Times in 77 Posts
    Try correcting your code to match the syntax required for the document type you are using:

    Validating:

    Why Validate?: http://validator.w3.org/docs/why.html
    CSS Validator: http://jigsaw.w3.org/css-validator/
    HTML Validator: http://validator.w3.org/#validate_by_uri+with_options

    Same for CSS errors.

    May help, too...

    Tableless Web Design: http://en.wikipedia.org/wiki/Tableless_web_design
    Why tables for layout is stupid: http://www.hotdesign.com/seybold/
    How to convert manually your HTML tables to CSS: http://www.table2css.com/articles/ho...tml-tables-css
    Basic Tables [Bad Examples!]: http://www.yourhtmlsource.com/tables/basictables.html
    Images, Tables, and Mysterious Gaps: https://developer.mozilla.org/en/Ima...ysterious_Gaps

    Why inline CSS and JavaScript code is such a bad thing: http://robertnyman.com/2008/11/20/wh...h-a-bad-thing/
    ☠ ☠RON☠ ☠

  • #8
    New Coder
    Join Date
    Aug 2012
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    fixing the image width did the trick

    thanks DUDE


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •