Jump to content

Making things look right in Firefox AND IE


Onloac

Recommended Posts

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?

Link to comment
Share on other sites

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!!!

Link to comment
Share on other sites

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  :confused:

 

 

Nvm making new topic.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

?? 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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.