Onloac Posted July 31, 2010 Share Posted July 31, 2010 Hi, I've been stumped for the last couple of hours and was hoping one of you can help me. Basically my problem is my css is showing up fine in css, but is out of place in IE. You can view what i'm talking about by visiting http://www.sonyfeed.com/. If you visit the main page in firefox you will see that the middle navigation menu's display fine, but if you view the same page in IE its all out of place. The funny thing is my forum is using pretty much the same code and it works fine in both browsers. Any ideas what i'm doing wrong? Quote Link to comment https://forums.phpfreaks.com/topic/209428-making-things-look-right-in-firefox-and-ie/ Share on other sites More sharing options...
trq Posted July 31, 2010 Share Posted July 31, 2010 You should start by at least validating your code. You have no doctype which does not help. Quote Link to comment https://forums.phpfreaks.com/topic/209428-making-things-look-right-in-firefox-and-ie/#findComment-1093492 Share on other sites More sharing options...
Onloac Posted July 31, 2010 Author Share Posted July 31, 2010 Yeah, I tried doing that and it points out alot of errors... but a majority of them are things that dont appear wrong to me. For example it claims that <img src="img.gif"> has an error in it and points to the last quote. I've tried to fix all the visible problems... but I really dont know how I could fix something that doesn't look broken to me. As for my navigation area... I would really appreciate any help anyone can offer. Then I can work on validating and such. Please keep in mind the site isn't public really... so its not final code. just cant seem to get that top navigation to work in both IE and Firefox. =( please help!!! Quote Link to comment https://forums.phpfreaks.com/topic/209428-making-things-look-right-in-firefox-and-ie/#findComment-1093494 Share on other sites More sharing options...
trq Posted July 31, 2010 Share Posted July 31, 2010 You need to get a doctype and get your code valid before you can even start trying to fix it. Its not optional. Quote Link to comment https://forums.phpfreaks.com/topic/209428-making-things-look-right-in-firefox-and-ie/#findComment-1093495 Share on other sites More sharing options...
Onloac Posted July 31, 2010 Author Share Posted July 31, 2010 Wow, I should have just listened to you the first time. As soon as I added a doc type the problem was fixed. I didn't even have to change anything. lol Thanks and sorry for not listening the first time. =p Quote Link to comment https://forums.phpfreaks.com/topic/209428-making-things-look-right-in-firefox-and-ie/#findComment-1093728 Share on other sites More sharing options...
sspoke Posted August 3, 2010 Share Posted August 3, 2010 Wow i was about to make a topic saying my site looks perfect on firefox/chrome but doesn't look good on internet explorer. Something wrong with div's not resizing when i resize internet explorer.. I added <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> somehow magically it fixed up nearly most of the div resizing problems (still one exists, but it's not that noticeable). How does it do it? I always thought those doctypes were bs added to make browsers feel important or some shit Nvm making new topic. Quote Link to comment https://forums.phpfreaks.com/topic/209428-making-things-look-right-in-firefox-and-ie/#findComment-1094435 Share on other sites More sharing options...
haku Posted August 3, 2010 Share Posted August 3, 2010 Imagine if someone passed you a page of Chinese characters, but didn't tell you what language it was (assuming you don't know any languages that use these characters). You would have to make guesses as to which language it is (Chinese, Japanese, Taiwanese) and then work off your when you try to translate it. if you are wrong, you are going to end up with something much different than what the writer meant (the same characters often mean different things in Chinese and Japanese). Browsers are the same - you feed them a bunch of HTML looking stuff, they don't know if it's HTML, XHTML or what version of these it is. A doctype tells the browser what it is looking at so it can properly evaluate the code and display it the way that the coder intended. A doctype is one of the most important things in an HTML document. Quote Link to comment https://forums.phpfreaks.com/topic/209428-making-things-look-right-in-firefox-and-ie/#findComment-1094460 Share on other sites More sharing options...
sspoke Posted August 3, 2010 Share Posted August 3, 2010 yup actually it solved all resizing issues no need for that new topic after all.. Seems strange.. I put all the logic in css file and it should display in IE.. as it does in firefox/chrome perfectly.. strange but i never liked IE anyways, slow,bad parsing html/css/javascript even.. But gotta support it as half the users still use it due to it being part of most operating systems hehe. So you telling me everytime a person visits the site it will download that 40 KB dtd file? does it cache up ? or not Quote Link to comment https://forums.phpfreaks.com/topic/209428-making-things-look-right-in-firefox-and-ie/#findComment-1094468 Share on other sites More sharing options...
haku Posted August 3, 2010 Share Posted August 3, 2010 ?? Your doctype should be part of your html file. Not a separate file. Whether it's cached or not depends on your server settings. You can set an expires header, and if the current date is before the expires header, it won't download the document from the server. If the expires date has passed, it will download the document. Quote Link to comment https://forums.phpfreaks.com/topic/209428-making-things-look-right-in-firefox-and-ie/#findComment-1094484 Share on other sites More sharing options...
sspoke Posted August 6, 2010 Share Posted August 6, 2010 alright man that was completely something odd i don't send it i just put it in the html markup on the very top above <HTML> yah but the DOCTYPE has a url http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd which is 40 KB meaning every user that goes to my website will have to download this file? or it's just a version stamp? doesn't actually go to that site (probably it does but whatever if it makes it work i guess it's no big deal) Quote Link to comment https://forums.phpfreaks.com/topic/209428-making-things-look-right-in-firefox-and-ie/#findComment-1095850 Share on other sites More sharing options...
haku Posted August 18, 2010 Share Posted August 18, 2010 It's a unique identifier, the user doesn't actually download anything from that site. Quote Link to comment https://forums.phpfreaks.com/topic/209428-making-things-look-right-in-firefox-and-ie/#findComment-1100621 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.