Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
New Problem: Image Displays Fine In IE7 but Not In FF or Opera
Old 10-22-2008, 03:16 PM New Problem: Image Displays Fine In IE7 but Not In FF or Opera
Skilled Talker

Posts: 66
Trades: 0
I am hoping one of the experts here can tell me why the "foot" image shows up just fine in IE7, but does not show using Opera or Firefox.

The code is:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
background-color:#000;
margin:0;
padding:0;
}
#container {
width:973px;
margin:0 auto;
height:500px;
}
#header {
background-image:url('http://vance.thebams.org/gabby/images/header1.jpg');
background-repeat: no-repeat;
width:973px;
height: 264px;
}
#header2 {
background-image:url('http://vance.thebams.org/gabby/images/header2.jpg');
background-repeat: no-repeat;
width:973px;
height: 55px;
}
#left {
background-image:url('http://vance.thebams.org/gabby/images/left.jpg');
background-repeat: repeat;
padding-top: 3.0em;
color: #FFF;
float:left;
height:127px;
width:242px;
}
#mid {
background-image:url('http://vance.thebams.org/gabby/images/mid.jpg');
background-repeat:repeat;
color: #FFF;
width: 731px;
height: 175px;
float:left;
}
#foot {
background-image:url('http://vance.thebams.org/gabby/images/foot.jpg');
background-repeat:no-repeat;
color: #FFF;
width: 973px;
height: 41px;
}
div.menu {
width:185px;
padding: 0.9px;
margin-top: 0.7em;
margin-left:0.5em;
border:0px;
text-align:left;
}
div.menu a {
display:block;
font-size:20px;
width:100%;
padding: 0.30em;
margin-left: 0.3em;
font-weight:bold;
border-top:1px ;
color: rgb(109,85,165);
text-decoration:none;
line-height:25px;
}
html>body div.menu a {width;}
div.menu a:hover {
color: #000;
font-size:20px;
font-weight: bold;
font-style: italic;
}
</style>
</head>
<body>
<div id="container">
<div id="header">
</div>
<div id="header2">
</div>
<div id="left">
</div>
<div id="mid">
</div>
<div id="foot">
</div>
</body>
</html>


Like I said, everything looks just fine with IE7. I can't figure out why the "foot image doesn't show when viewing it with Opera or Firefox. I have validated the code with W3C, but the problem still persists.

If anyone has any suggestions, I would really appreciate it.

Thanks
JustAGuy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-22-2008, 05:19 PM Re: New Problem: Image Displays Fine In IE7 but Not In FF or Opera
aldor's Avatar
Ultra Talker

Posts: 479
Name: Alan
Location: Lincoln(UK)
Trades: 0
In your body section you have six <div> elements starting and only five closing. You need to a close the container <div> before closing the body.
aldor is offline
Reply With Quote
View Public Profile
 
Old 10-22-2008, 06:29 PM Re: New Problem: Image Displays Fine In IE7 but Not In FF or Opera
Skilled Talker

Posts: 66
Trades: 0
Thanks aldor.

I fixed the </div> problem. I also cleared the float #left and #mid. That seemed to have fixed the problem.

Thanks again
JustAGuy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to New Problem: Image Displays Fine In IE7 but Not In FF or Opera
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.95256 seconds with 12 queries