Click to See Complete Forum and Search --> : Im sick of E
e-realmz
09-08-2005, 08:39 PM
I just spent 2 days making a webpage in firefox. When I tried to view it in Internet Explorer, nothing but the banner showed up with a table around it.
I want my website to show up on all or most browsers. what should I do?
JPnyc
09-08-2005, 08:50 PM
Well you could let us see the code, or link us to the page
e-realmz
09-08-2005, 10:12 PM
The link is in my sig.
tabzter
09-08-2005, 10:26 PM
Rule of Thumb for cross-browser compatibilty:
1) Only one <body> tag allowed in the [x]html page. This is what is messing up your viewing. You are only supposed to have 1 document body tag.
2) All <style> tags should be inside the <head></head> tags.
3) All <script> tags should also be, whereever possible, put between the <head></head> tags.
Fix these minor problems and let us know.
NogDog
09-08-2005, 10:56 PM
Use a doctype (see http://www.w3.org/QA/Tips/Doctype ). Besides the fact that it's required for your markup to be valid, it gets IE out of "quirks mode" and closer to standards-compliant mode.
Then run your page through the HTML and CSS validators:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/
Doing all of that will likely clear up a lot of differences between the browsers.
e-realmz
09-08-2005, 11:22 PM
Cool it works. The reason there were two body tags was because I called both javascript codes from seperate pages using a php code. I forgot to take the tags out of those pages. I decided to put both codes directly on the page since when you view the source, you could see the code anyways.
I don't know much about the doctypes but just grabbed the first one I saw. It seems to work.
Thanks guys. ;)