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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2010
    Location
    Cleveland, OH
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help! Can Someone tell me why the Container doesnt stretch in IE?

    Please. Really need some help.

    http://lot17design.com/sports2.html

    This page looks fine in Mac Firefox & Safari but, the container does not appear to wrap the full height of the page thus setting the footers placement off as well.

    I hate to paste all this code but it would be a tad quicker than anyone going and viewing the source code.

    Thanks, guys.

    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>My43.Net - WUAB Cleveland, Ohio - Sports</title>
    <style type="text/css"> 
    <!-- 
    body  {
    	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: #09F;
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 100%;
    	background-image: url(/Images/FinalBackground.jpg);
    }
    .thrColFixHdr #container {
    	height: auto;
    	width: 963px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
    	background: #FFFFFF; /* 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. */
    	margin-top: 0;
    	margin-right: auto;
    	margin-bottom: 0;
    	margin-left: auto;
    
    } 
    .thrColFixHdr #header {
    	background: #DDDDDD;  /* 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. */
    	height: 40px;
    	padding-top: 0;
    	padding-right: 10px;
    	padding-bottom: 0;
    	padding-left: 20px;
    } 
    .thrColFixHdr #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 */
    }
    .thrColFixHdr #sidebar1 {
    	float: left; /* since this element is floated, a width must be given */
    	width: 631px; /* padding keeps the content of the div away from the edges */
    	padding-top: 5px;
    	padding-right: 0px;
    	padding-bottom: 0px;
    	padding-left: 5px;
    	height: 1260px;
    	color: #FFF;
    	background-color: #FFF;
    }
    ##sidebar3MidLeft {
    	height: 23o;
    	width: 631px;
    	top: 300px;
    	margin-top: 300px;
    	left: 100px;
    	padding-top: 10px;
    	padding-right: 0px;
    	padding-bottom: 0px;
    	padding-left: -505px;
    	margin-left: -170px;
    }
    .thrColFixHdr #sidebar2 {
    	float: right; /* since this element is floated, a width must be given */
    	width: 300px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
    	background: #EBEBEB; /* padding keeps the content of the div away from the edges */
    	padding-top: -10px;
    	padding-right: 10px;
    	padding-bottom: 15px;
    	padding-left: 10px;
    	height: 1250px;
    	margin-top: -22px;
    }
    #Logo {
    	height: 174px;
    	width: 963px;
    	margin-right: auto;
    	margin-left: auto;
    }
    .thrColFixHdr #mainContent { 
    	margin: 0 200px; /* the right and left margins on this div element creates the two outer columns on the sides of the page. No matter how much content the sidebar divs contain, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the sidebar spaces when the content in each sidebar ends. */
    	padding: 0 10px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
    } 
    .thrColFixHdr #footer {
    	background-color: #000;
    	margin-top: 20px;
    	padding-top: 0;
    	padding-right: 10px;
    	padding-bottom: 0;
    	padding-left: 20px;
    } 
    .thrColFixHdr #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 */
    }
    .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;
    }
    .copywright_div { /* 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: 3px;
    	line-height: 0px;
    }
    #apDiv1 {
    	position:absolute;
    	left:33px;
    	top:42px;
    	width:28px;
    	height:40px;
    	z-index:1;
    }
    body,td,th {
    	color: #999;
    	font-size: 12px;
    }
    a:link {
    	color: #09F;
    	text-decoration: none;
    }
    a:visited {
    	text-decoration: none;
    	color: #F90;
    }
    a:hover {
    	text-decoration: underline;
    }
    a:active {
    	text-decoration: none;
    }
    --> 
    </style><!--[if IE 5]>
    <style type="text/css"> 
    /* place css box model fixes for IE 5* in this conditional comment */
    .thrColFixHdr #sidebar1 { width: 180px; }
    .thrColFixHdr #sidebar2 { width: 190px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css"> 
    /* place css fixes for all versions of IE in this conditional comment */
    .thrColFixHdr #sidebar2, .thrColFixHdr #sidebar1 { padding-top: 30px; }
    .thrColFixHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <link href="/#copywright.css" rel="stylesheet" type="text/css" />
    <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];}
    }
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
    }
    //-->
    </script>
    </head>
    
    <body class="thrColFixHdr" onload="MM_preloadImages('/Images/nav1-home-down.jpg','/Images/nav1-prog schedule-down.jpg','/Images/nav1-my life-down2.jpg','/Images/nav1-sports-down.jpg','/Images/nav1-ent-down.jpg','/Images/nav1-CONT - DOWN.jpg')">
    
    <div id="apDiv1"></div>
    <div class="Logo" id="Logo">
      <table width="960" height="169" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="163"><img src="/Images/My43_PrimaryLogo.png" width="161" height="156" alt="Home" /></td>
          <td width="797">
          <!-- begin ad tag-->
    <script language="JavaScript" type="text/javascript">
    if (typeof ord=='undefined') {ord=Math.random()*10000000000000000;}
    document.write('<script language="JavaScript" src="http://ad.doubleclick.net/adj/wn.loc.wuab/sports;sz=728x90;ord=' + ord + '?" type="text/javascript"><\/script>');
    </script><noscript><a href="http://ad.doubleclick.net/jump/wn.loc.wuab/sports;sz=728x90;ord=123456789?" target="_blank"><img src="http://ad.doubleclick.net/ad/wn.loc.wuab/sports;sz=728x90;ord=123456789?" width="728" height="90" border="0" alt=""></a></noscript>
    <!-- End ad tag --></td>
      </table>
    </div>
    
    <div id="container"><a href="http://www.my43.net/indexnew.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Nav_Home','','/Images/nav1-home-down.jpg',1)"><img src="/Images/nav1-home-reg.jpg" alt="Home" name="Nav_Home" width="175" height="40" border="0" id="Nav_Home" /></a><a href="http://www.my43.net/programming.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Nav_Prog','','/Images/nav1-prog schedule-down.jpg',1)"><img src="/Images/nav1-prog schedulep-reg.jpg" alt="Programming" name="Nav_Prog" width="228" height="40" border="0" id="Nav_Prog" /></a><a href="http://www.my43.net/mylife.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Nav_MyLife','','/Images/nav1-my life-down2.jpg',1)"><img src="/Images/nav1-mylife-reg.jpg" alt="My Life" name="Nav_MyLife" width="104" height="40" border="0" id="Nav_MyLife" /></a><a href="http://www.my43.net/sports.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Nav_sports','','/Images/nav1-sports-down.jpg',1)"><img src="/Images/nav1-sports-reg.jpg" alt="Sports" name="Nav_sports" width="104" height="40" border="0" id="Nav_sports" /></a><a href="http://www.my43.net/entertainment.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Nav_Ent','','/Images/nav1-ent-down.jpg',1)"><img src="/Images/nav1-ent-reg.jpg" alt="Entertainment" name="Nav_Ent" width="172" height="40" border="0" id="Nav_Ent" /></a><a href="http://www.my43.net/contests.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('NAV_Contests','','/Images/nav1-CONT - DOWN.jpg',1)"><img src="/Images/nav1-CONTESTSreg.jpg" alt="Contests" name="NAV_Contests" width="180" height="40" border="0" id="NAV_Contests" /></a>
      <div id="sidebar1">
      <img src="/Images/SGSEnew43.jpg" width="631" height="278" alt="Seman &amp; Garson Sports Extra" /> <a href="http://www.garson.com "><img src="/Images/S&amp;g1.jpg" width="631" height="442" alt="Seman &amp; Garson"rel="shadowbox[field_photo_image]" /></a>
      <p>
      <div align="center">
         <!-- begin ad tag-->
    <script language="JavaScript" type="text/javascript">
    if (typeof ord=='undefined') {ord=Math.random()*10000000000000000;}
    document.write('<script language="JavaScript" src="http://ad.doubleclick.net/adj/wn.loc.wuab/sports;sz=468x60;ord=' + ord + '?" type="text/javascript"><\/script>');
    </script><noscript><a href="http://ad.doubleclick.net/jump/wn.loc.wuab/sports;sz=468x60;ord=123456789?" target="_blank"><img src="http://ad.doubleclick.net/ad/wn.loc.wuab/sports;sz=468x60;ord=123456789?" width="468" height="60" border="0" alt=""></a></noscript>
    <!-- End ad tag -->
        </div>
         <p>&nbsp;</p>
         <iframe src="http://xtreme.magnify.net/embed/player/FRFT0TT90Z584M14" width="600" height="400" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" allowtransparency="true"></iframe>
      <!-- end #sidebar1 -->
      </div>
      <div id="sidebar2">
        <p>    
        <div><iframe id="flashvideoplayer" width="295" height="468" align="center" topmargin="0" leftmargin="20" marginwidth="0" border="0" frameborder="0" scrolling="no" allowtransparency="true" src="http://www.woio.com/global/video/flash/flashvideoplayer.asp?playerName=miniplayer.swf&videoHeight=250&playerHeight=468&playerWidth=295&menuPosition=bottom&topVideoCatNo=195329&autoStart=false&mute=false"></iframe>
          <p>&nbsp;</p>
        </div>
        <div><script type="text/javascript" src="http://cdn.cinesport.com/container.js"></script>
    <iframe id="csprt" frameborder="0" align="top,left" marginheight="0" marginwidth="0" scrolling="no" width="300" height="428" src="http://cdn.cinesport.com/container.html?id=wuab&w=300&h=428"></iframe>
    <script type="text/javascript">csprtContainer();</script></div>
    
        </p>
        <p>      <img src="/Images/LibertyFordMustang300x250.jpg" width="300" height="247" alt="Ad" /></p>
      </div>
    <div class="#sidebar3MidLeft" id="#sidebar3MidLeft">
      <div align="right"></div>
    </div>
      <div align="center">
        <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
        <br class="copywright_div" />
      </div>
      <div id="footer">
        <p align="center"><a href="http://www.my43.net/indexnew.html">Home</a> - <a href="http://www.my43.net/programming">Programming</a> - <a href="http://www.my43.net/mylife">My Life</a> -<a href="http://www.my43.net/sports"> Sports</a> - <a href="http://www.my43.net/entertainment">Entertainment</a> -<a href="http://www.my43.net/contests"> Contests</a> - <a href="mailto:rcornachione@woio.com">Contact</a> - <a href="my43.net">EEO Report</a> - <a href="my43.net">CC Problems</a></p>
        <div align="center">
          <p>™ &amp; © MyNetworkTV, Inc.™ &amp; © WUAB All rights reserved. Any reproduction, duplication, or distribution in any form is expressly prohibited.<br />
            <a href="http://www.mynetworktv.com/terms.php">Terms &amp; Conditions</a> | <a href="http://www.mynetworktv.com/privacy.php">Privacy Policy</a> | <a href="http://www.mynetworktv.com/contact.php">Contact My Network TV</a></p>
          <p>Site designed and programmed by Wireframe &amp; WUAB</p>
        </div>
      </div>
    <!-- end #container --></div>
    <script type="text/javascript">
    <!--
    swfobject.registerObject("FLVPlayer");
    //-->
    </script>
    <script src="http://cdn.wibiya.com/Toolbars/dir_0579/Toolbar_579248/Loader_579248.js" type="text/javascript"></script>
    </body>
    </html>

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    You might want to fix the errors in your code here first. IE is very picky about code. Other browsers might display invalid code or code that isnt supported by IE. Fix the errors then check to see how it displays.


  •  

    Posting Permissions

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