karleyb Posted February 13, 2008 Share Posted February 13, 2008 I am using a simple include to put the header, navigation and footer into web pages. On an initial load the left side navigation doesn't show up in IE6 but shows fine in IE7 and Firefox. If I call a page from another page the navigation shows up but on on initial load. The site is www.staytan.com/newsite/index.php. Any suggestions would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
revraz Posted February 13, 2008 Share Posted February 13, 2008 I would suggest you post the code that shows the includes. Any suggestions would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted February 13, 2008 Share Posted February 13, 2008 Slow down, your accusations that php is failing in IE6 is a joke because php doesn't care what browser you have. Everything in php processors Prehypertext meaning it does all its magic before the browser starts to process it (less output buffering) It don't care if its IE, command line, FF, Safari or the magic browser I just made up of Spamalot. They all get the same text. Its how ie6 takes your output and displays it is your issue. Quote Link to comment Share on other sites More sharing options...
KrisNz Posted February 13, 2008 Share Posted February 13, 2008 I'd suggest validating your html. You have a meta tag in your body section for starters. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted February 13, 2008 Share Posted February 13, 2008 The page at the link has a significant number of markup validation errors (most related to mis-matched tags) and is probably causing different browsers to see and render the html differently. http://validator.w3.org/check?uri=http%3A%2F%2Fwww.staytan.com%2Fnewsite%2Findex.php&charset=%28detect+automatically%29&doctype=Inline&group=0 Fix all html and css validation errors, then worry about cross-browser operation. Quote Link to comment Share on other sites More sharing options...
haku Posted February 13, 2008 Share Posted February 13, 2008 This is a perfect example of why people should learn proper (x)html and CSS before learning PHP. It doesn't matter how good you are at outputting something, if the code you output is crap in itself. Better to learn what you should be outputting and then, and only then, learn how to output it. I am shocked at the atrocious (X)HTML I see on here all the time. Quote Link to comment Share on other sites More sharing options...
karleyb Posted February 13, 2008 Author Share Posted February 13, 2008 Ok I admit I'm not an expert at PHP and another company started this site for me so I hadn't fixed the XHTML problems. I have now taken care of them the page validates and the problem is still happening. Any other ideas? Quote Link to comment Share on other sites More sharing options...
trq Posted February 13, 2008 Share Posted February 13, 2008 Were going to need to see the relevent code, but this is not the place. Your issue is html related, not php. We do however have a html help board. Quote Link to comment Share on other sites More sharing options...
rhodesa Posted February 13, 2008 Share Posted February 13, 2008 If you want more help, take this over to the CSS forum, cus that is where your problem is. PHP is generating the code just as your programmed it to (do a view source on the page) I found a style attribute of margin-left:-100%; on your navigation, and I'm pretty sure that is why it's not showing. Also, don't use float:left for EVERYTHING on the page. I made these changes, and it looked pretty good, try them out: -Removed #header {float:left;} -Removed #navigation {margin-left:-100%;} -Removed #wrapper {float:left;} -Moved <div id="navigation"> before <div id="content"> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.