I think the problem is IE sees the navigation as being stuck under the margin of the body, and thus unaccessible. I can’t say I’m too familiar with using style sheets to lay out a page like this, but in this case it might be easier to just use an old fashioned table.
Don’t you dare get rid of that doctype declaration, that’ll just break IE even more.
Anyhow, since you probably don’t feel like rewriting the entire page and style sheet, just define all your div classes to have a relative position. The fastest way is like so (in the CSS file, natch):
div { position: relative; }
And if I could make one recommendation: don’t use the <font> tag. Use <span> instead. Just replace “font” in all your font tags with “span” and you’ll be golden.
Also, regarding Armilla’s suggestion: it’s unnecessary. I’ve never had to use it. I guess it wouldn’t hurt to include it, but it’s an extra step you don’t need, since every browser can handle <link> tags just fine.
Don’t you just hate yourself sometimes, I know getting rid of the Doctype is horrible but it seems it would have fixed the menu problem. For my own sanity, why?
It seems that Hauky’s div { position: relative; } is the key.
Is there any way to position elements pixel-precise? Coz, the CSS positioning thing makes me use some weird numbers…
Duckster
<i>Why <?xml-stylesheet href="#pbstyles" type=“text/css”?> ??? You are not creating an XML web page. Stick with just XHTML. Walk before you can run.</i>
Yes, the key in the provided link is …
“CSS defines different conformance rules for HTML and XML documents; be aware that the HTML rules apply to XHTML documents delivered as HTML and the XML rules apply to XHTML documents delivered as XML.”
Your web page is an XHTML document delivered as HTML.
I haven’t dug into your html/css to see if you’ve implemented changes discussed here, but I thought I’d let you know that as of the time of this post, I get the same problem you describe from your initial link, using IE 6.0.2800.1106.
Also, just for the sake of cleaning up your code, which isn’t that messy…
You need to replace all your <br>'s with <br />'s, and, in this tag:
<img src=“pmu-room.jpg” caption=Purdue Memorial Union Recreation Center alt=“PMU Recreation Facilities” />
Duckster is right that you need to fix the quotes, but also, the caption attribute doesn’t exist for the img element. In fact, it doesn’t exist for any HTML element so far as I can tell. I think you probably should just get rid of it.
Looking at the code of the page as it is now it looks as if your HTML editor moved the <?xml-stylesheet…> line down into the body of the document - I should have warned you that things like FrontPage like to do this. It needs to go right at the top of the document.
For what it’s worth, my fix works on all versions of IE6 that I’ve tried it on. Even if I edit the source document to make it well-formed XML it still continues to fail without that line.
I’m not sure I see the distinction between an “XML web page” and XHTML. XHTML is XML. I’ve not done a huge amount of work with loose XHTML; am I missing something?