...

View Full Version : Images not showing in Internet Explorer



GBizzle99
05-06-2009, 07:44 PM
My images are not showing in Internet explorer for some reason but fine in everything else. I have an image as background underneath my Links which I have put in the CSS. The Image that is'nt showing is NavBar.jpg in the NavigationBar div. Any help would be much aprciated.



<style type="text/css">
html,body{
margin:0;
padding:0;
background-color:#000;
}

*{
margin:0;
padding:0;
}

body{
color:#FFF;
font: 76% arial,sans-serif;
text-align:center;
background: #565656 url(Background3.jpg) center fixed;
background-repeat: no-repeat;
}
p{
margin:0 10px 10px
}
a{
display:block;
color: #981793;
padding:10px
}



div#topLine {
width:900px;
}

div#header {
background-repeat:no-repeat;
width:900px;
height:auto;
padding-bottom:50px;
}
div#flashBanner {
float:left;
width:400px;
text-align:right;
}
div#imageDiv {
float:left;
text-align:left;
}

div#container{
width:900px;
margin:0 auto;
text-align:left

}

div#content p{
line-height:1.4
}

div#footer p{
margin:0;
padding:5px 10px
}



div#left{
background:#B9CAFF;
float:left;
width:500px
}

div#right{
background:#FF8539;
float:right;
width:400px
}

div#footer{
background: #333;
color: #FFF;
clear:both;
width:100%
}

#NavigationLinks {
margin: 0;
padding: 0 0 20px 150px;


}

#NavigationLinks li {
margin: 0;
padding: 0;
display: inline;
list-style: none;
}

#NavigationLinks a {
float: left;
line-height: 14px;
font-weight:bold;
margin: 0 50px 4px 10px;
text-decoration: none;
color: #ffffff;
border-bottom: 1px solid orange;
/*background:url(NavBar.jpg);*/

}

#NavigationLinks a.active{

padding-bottom: 2px;
color: grey;
}

#NavigationLinks a:hover {

border-bottom: 2px solid orange;
padding-bottom: 2px;
color:orange;
}

#NavigationBar {
background: url(NavBar.jpg);
background-repeat:no-repeat;
width: 900;
height:35px;
clear:both;
}

#FooterLinks {
margin: 0;
padding: 0 0 20px 150px;


}

#FooterLinks li {
margin: 0;
padding: 0;
display: inline;
list-style: none;
}

#FooterLinks a {
float: left;
line-height: 14px;
font-weight:bold;
margin: 0 50px 4px 10px;
text-decoration: none;
color: white;
border-bottom: 2px dotted white;
}

#FooterLinks a.active{

padding-bottom: 2px;
color: white;
}

#FooterLinks a:hover {

border-bottom: 2px solid white;
padding-bottom: 2px;
color:white;
}

#FooterBar {
background-color:#333333;
height:34px;
}

</style>

SB65
05-06-2009, 08:28 PM
You have:


#NavigationBar {
background: url(NavBar.jpg);
background-repeat:no-repeat;
width: 900;
height:35px;
clear:both;
}

Try making this 900px. If this doesn't fix it, can you post your html?

GBizzle99
05-06-2009, 08:47 PM
Im afraid that did'nt work. Heres the Html:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Anti-Drink Driving</title>
<LINK REL=StyleSheet HREF="limitsStyle2.css" TYPE="text/css" MEDIA=screen>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="HAPedit 3.1">

</head>
<body>

<div id="container">

<div id="header">
<img id="Logo" border="0" src="logo.gif" width="345" height="75" />
<!--<img id="NavBar" border="0" src="NavBar.jpg" width="100%" height="35px" />-->
<div id="NavigationBar">
<ul id="NavigationLinks">
<li><a href="test1.HTML" class="active" >HOME</a></li>
<li><a href="Facts.HTML" class="active" >KNOW YOUR FACTS</a></li>
<li><a href="Activity.html" class="active" >ACTIVITIES</a></li>
<li><a href="Contact.HTML" class="active" >FORUM</a></li>
<li><a href="UsefulLinks.html" class="active" >USEFUL LINKS</a></li>
</ul>
</div><!-- end of NavigationLinks-->
</div><!--end of header-->

<div id="content">
</div><!--end of content-->

<div id="left">

<div id="LeftNavigation">
<ul>
<li><a href="UnitCalculator.html" class="active" >Unit Calculator</a></li>
<li><a href="Comic.html" class="active" >Comic</a></li>
<li><a href="MotionGraphics.html" class="active" >Motion Graphics</a></li>
<li><a href="Game.html" class="active" >Driving Game</a></li>
</ul>
</div><!-- end of LeftNavigation-->

</div><!--end of left-->

<div id="right">
<p> On this page you can choose different activities and learn about drink drink driving. Just select a link from the side of the page.</p>
</br>
</div><!--end of right-->

<div id="footer">

<div id="FooterBar">
<ul id="FooterLinks">
<li><a href="test1.HTML" class="active" >HOME</a></li>
<li><a href="Activity.html" class="active" >ABOUT SLURP</a></li>
<li><a href="Contact.HTML" class="active" >FORUM</a></li>
<li><a href="UsefulLinks.html" class="active" >PYXIS MEDIA</a></li>
</ul>
</div><!-- end of FooterLinks -->
</div> <!--end of footer-->

</div> <!--end of container-->

</body>
</html>

SB65
05-06-2009, 09:21 PM
Odd - using a test image I can see NavBar.jpg in IE6 and IE7.

Do you have a live URL that you could post?

Rowsdower!
05-06-2009, 09:35 PM
Yes, a link would go farthest for this.

In the meantime, have we checked the simplest thing first? Are we sure the filepath to the image is valid (including the use of caps)? Some browsers will fish for the next best thing when given a bad filepath and some won't -- this could be the source of the issue.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum