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 5 of 5
  1. #1
    New Coder
    Join Date
    Apr 2009
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Images not showing in Internet Explorer

    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.

    Code:
    <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>

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,956
    Thanks
    9
    Thanked 727 Times in 721 Posts
    You have:

    Code:
    #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?

  • #3
    New Coder
    Join Date
    Apr 2009
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Im afraid that did'nt work. Heres the Html:

    Code:
    <!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>

  • #4
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,956
    Thanks
    9
    Thanked 727 Times in 721 Posts
    Odd - using a test image I can see NavBar.jpg in IE6 and IE7.

    Do you have a live URL that you could post?

  • #5
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    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.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting


  •  

    Posting Permissions

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