Jump to content

Site won't display in Explorer.....plz help!

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
the_code_charmer

the_code_charmer

    Learning Programmer

  • Members
  • PipPipPip
  • 68 posts
This is a page from my site created in dreamweaver CS4 and it won't display anything in IE v 8.0.6.xxx
Here is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/URL]">
<html xmlns="[url=http://www.w3.org/1999/xhtml]XHTML namespace[/url]">
<head>
<link rel="stylesheet" type="text/css" href="js/style.css" />  
<script type="text/javascript" src="js/jquery.js"></script>  
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>  
<script type="text/javascript" src="js/sprite.js"></script> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
 font: 100% Verdana, Arial, Helvetica, sans-serif;
 background: #000000;
 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;
}
.oneColLiqCtrHdr #container {
 width: 72%;  /* this will create a container 80% of the browser width */
 background: #000000;
 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. */
}
.oneColLiqCtrHdr #header {
 /* 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(images/header.jpg);
 background-repeat: no-repeat;
 height: 241px;
 background-color: #000000;
}
.oneColLiqCtrHdr #header h1 {
  /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
.oneColLiqCtrHdr #mainContent {
 /* remember that padding is the space inside the div box and margin is the space outside the div box */
 background: #000000;
 color: #FFF;
}
.oneColLiqCtrHdr #footer { 
 padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
 background:#000000;
} 
.oneColLiqCtrHdr #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 */
 color: #FFF;
}

#apDiv1 {
 position:absolute;
 left:381px;
 top:103px;
 width:671px;
 height:53px;
 z-index:1;
}
#apDiv2 {
 position:absolute;
 left:173px;
 top:188px;
 width:900px;
 height:86px;
 z-index:2;
 background-image: url(images/images/contenthome_1.jpg);
 background-repeat: no-repeat;
}
#apDiv3 {
 position:absolute;
 left:173px;
 top:274px;
 width:665.5px;
 height:383px;
 z-index:1;
 background-image: url(images/images/contenthome_2.jpg);
 background-repeat: repeat-y;
}
#apDiv4 {
 position:absolute;
 left:882px;
 top:274px;
 width:6px;
 height:370px;
 z-index:1;
 background-image: url(images/images/contenthome_3.jpg);
 background-repeat: repeat-y;
}
#apDiv5 {
 position:absolute;
 left:841px;
 top:274px;
 width:16px;
 height:369px;
 z-index:1;
 background-image: url(images/images/contenthome_3.jpg);
 background-repeat: no-repeat;
}
#apDiv6 {
 position:absolute;
 left:856px;
 top:274px;
 width:206px;
 height:405px;
 z-index:1;
 background-image: url(images/images/contenthome_4.jpg);
 background-repeat: repeat-y;
}
#apDiv7 {
 position:absolute;
 left:1062px;
 top:274px;
 width:11px;
 height:387px;
 z-index:1;
 background-image: url(images/images/contenthome_5.jpg);
 background-repeat:repeat-y;
}
#bottom {
 position:absolute;
 left:173px;
 width: 900px;
 height: 94px;
 top:655px;
 z-index:1;
 background-image: url(images/images/contenthome_6.jpg);
 background-repeat: no-repeat;
}
 
</style></head>
<body class="oneColLiqCtrHdr">
d
<div id="container">
  <div id="header">
    
  </div>
  <div id="apDiv1">
  <ul id="navigation">  
    <li ><a class="home" href="#"></a></li>  
    <li ><a class="aboutus" href="#"></a></li>
    
    <li ><a class="holdinganevent" href="#"></a></li>  
    <li ><a class="events" href="#"></a></li>  
    <li ><a class="contactus" href="#"></a></li>  
</ul>  
  </div>
  <div id="mainContent">
  <div id= "apDiv2"> </div>
  <div id= "apDiv3">
    <td><tr>asdfasdfasdfasddddddddddddddd</tr></td>
  </div>
 <div id="apDiv5"></div>
<div id="apDiv6">sdf</div>
<div id="apDiv7"> </div>
  <div id="bottom"></div>

  <h1> </h1>
    <h1> </h1>
     <!-- end #mainContent --></div>
  <div id="footer">
    <!-- end #footer -->
  </div>
<!-- end #container --></div>
</body>
</html>



Here is a seperate CSS attached for the navigation:

#navigation   
{   
position: absolute;   
}   
  
#navigation li   
{   
float:left;   
}  
#navigation li a   
{
 background-image:url(../navegation.jpg);
 display:block;
}  
.home   
{   
background-position:0px 0px;   
width:125px;   
height:45px;   
}   
  
.aboutus   
{   
background-position:-125px 0px;   
width:124px;   
height:45px  
}   
  
.holdinganevent  
{   
background-position:-249px 0px;   
width:131px;   
height:45px  
}   
  
.events  
{   
background-position:-380px 0px;   
width:115px;   
height:45px  
}   
  
  
.contactus  
{   
background-position:-496px 0px;   
width:126px;   
height:45px  
}  
 #navigation a .hover {
 background: transparent  url(../navegation.jpg) no-repeat;
 display:block ;
 opacity: 0;
 position: relative;
 top: 0;
 left: 0;
 height: 100%;
 width: 100%;
 
 }
 
 #navigation .home .hover {
 background-position: -0px -52px;
 
 }
 #navigation .aboutus .hover{
 background-position: -125px -52px;
 
 }
 #navigation .holdinganevent .hover {
 background-position: -249px -52px;
 }
 #navigation .events .hover {
 background-position: -380px -52px;
 }
 #navigation .contactus .hover {
 background-position: -496px -52px;
 }

I don't know what else to try so any help is welcome

Thanks in advance!

#2
lazycoder

lazycoder

    Newbie

  • Members
  • Pip
  • 6 posts
There is a comment
<!--
starting in the style tag which isn't closed.

--------------
it.expertmonster.com

#3
so1i

so1i

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 312 posts
I'm guessing that means you write your code in notepad or something similar. You should try a simple HTML editor, just changes the colour etc for you, so you can easily see what's going on with your code (would have shown you that comment tag was not closed, as it would all be one colour!)

I use Aptana, should check it out! :)
My Company - My Homepage - My Twitter - My Google+ - My LinkedIn

"Things don’t have to change the world to be important.” - Steve Jobs

#4
ethikz

ethikz

    Programmer

  • Members
  • PipPipPipPip
  • 112 posts
The comment tag that lazycode posted which is right here



<script type="text/javascript" src="js/sprite.js"></script> 

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

[COLOR="Orange"]<style type="text/css">[/COLOR]

[COLOR="Red"]<!--[/COLOR]

[COLOR="Blue"]body {[/COLOR]


just take the red text out since you don't need to comment on anything, but leave a space between the orange and blue part for reading use and it should work in IE..everything else seems to be opened and closed correctly...

keep me posted on this issue and let me know after the change if it works or not