Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

nested div with id does not display in ff 1

Status
Not open for further replies.

gruvn

Programmer
Oct 15, 2004
24
CA
Hey there -
I'm not sure what's going on here, but I have a series of nested divs on my page. The mystery (bug?) can be found in the <div id="sponsors">. In IE (which I loathe), my image shows up fine all the time. In FF, my image ONLY shows up when I remove the value for the id, and just have my image within an unidentified div. I don't want inline styles.

Is this a bug I haven't heard of before?

Thanks folks!

My complete, simplified code is below:
**********************
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>title</title>
</head>
<body>

<div id="container">
<div id="top">
logo
<div id="topnav">
<div id="outer">
navigation
</div>
</div>
</div>
<div id="leftnav">
<div id="sponsors"> <!--remove id='' and it displays fine--->
<a href="index.html"><img id="r1" src="images/smile.gif" alt=""></a>
</div>
<div id="newStuff">
newstuff
</div>
</div>
<div id="content">
content
</div>
<div id="footer">
<ul id="menu">
bottom nav
</ul>
</ul>
</div>
updated link
</div>
</body></html>
 
Nope. In fact, I would be incredibly surprised if I could reproduce your error. Would you be able to put this code on a live page and show us how it works?

Is there a stylesheet associated with the html that might be causing the issues?

[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Hey Guys - thanks for looking...
Vragabond - "Nope" - I assume this is in response to my comment about whether or not it's a bug? FYI, there is no style sheet. The exact code above gives me the problem.

feherke - I do have Adblock installed! I had not even thought of that - thanks for the tip! I'll try it out tonight! Thanks so much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top