Site looks very different in IE and Firefox and Mozilla!

Please support our HTML and CSS advertiser: 50% off 6 Months Dedicated Server Hosting from 1&1!
Reply

Join Date: Jul 2007
Posts: 30
Reputation: Mylena is an unknown quantity at this point 
Solved Threads: 1
Mylena Mylena is offline Offline
Light Poster

Site looks very different in IE and Firefox and Mozilla!

 
0
  #1
Sep 3rd, 2008
Hi everyone,

I built a site in Internet Explorer, and it looks very different in firefox and mozilla. For example, the header is displaced, and the layers look displaced, and the </br> does not seem to work, etc. It's really annoying.

What is the best way to change the whole website to make it compatible with all browsers?

Below are the examples:

Internet Explorer:
Name:  1.jpg
Views: 10
Size:  16.5 KB

Mozilla/Firefox:
Name:  2.jpg
Views: 9
Size:  16.5 KB


Thanks a lot!!!
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 15
Reputation: Andrew Hucks is an unknown quantity at this point 
Solved Threads: 1
Andrew Hucks Andrew Hucks is offline Offline
Newbie Poster

Re: Site looks very different in IE and Firefox and Mozilla!

 
0
  #2
Sep 3rd, 2008
Just two notes:

It's Mozilla Firefox, not Firefox and Mozilla. One browser. Compound noun. ;-)


</br>? That isn't an HTML tag, is it? The linebreak syntax is an empty tag, meaning there is no end tag to it.

You should go ahead and learn xHTML if you are learning HTML. It's not much different, and it's becoming the Web Standard. Anyways, use <br /> as a linebreak. (Or, just <br> if you'd like to be an infidel)

Secondly, I bet that you coded it while testing it in Mozilla (or IE), without checking. The problem could lie anywhere in your coding, so you would best be up to re-coding it, while checking it in both browsers (add Safari, as well. Just to be sure. Don't forget those awful Mac Users, :-))

Browsers render code in different fashions. There are many variables. OS (Linux, XP, Mac), broswer (Opera, Safari, Mozilla, IE), screen size, and many more.

Anyways, when you can't figure it out, code it for IE. Microsoft has a monopoly on computers, and those come with IE. (~85% of computer users use IE, I believe. I saw that statistic a long time ago, it's probably less with Firefox, and soon to be even less with Google Chrome. [BTW, Chrome is Google's new web browser. It's open source, so get your hands on it.])

I think your best bet would to just recode it, checking in different browsers as you go. Then you can easily pinpoint your errors.
Last edited by Andrew Hucks; Sep 3rd, 2008 at 7:57 pm.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 499
Reputation: tiger86 is an unknown quantity at this point 
Solved Threads: 10
tiger86's Avatar
tiger86 tiger86 is offline Offline
Posting Pro in Training

Re: Site looks very different in IE and Firefox and Mozilla!

 
0
  #3
Sep 4th, 2008
Hi, Are you writing your Website in HTML or XHTML? </br> is not a recognized tag in either language I think you meant to put
HTML and CSS Syntax (Toggle Plain Text)
  1. <br />
that will fix one of your problems. One problem with only using IE is that IE is to leniant on coding it allows a lot of errors so I use at least 2 to 4 different browsers to check my sites in to make sure it is compliant.
If I helped you I would appreciate it if you would give me some reputation.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 499
Reputation: tiger86 is an unknown quantity at this point 
Solved Threads: 10
tiger86's Avatar
tiger86 tiger86 is offline Offline
Posting Pro in Training

Re: Site looks very different in IE and Firefox and Mozilla!

 
0
  #4
Sep 4th, 2008
if you want to find out what the problem is go validate it at http://validator.w3.org/
then go back and fix the errors.
If I helped you I would appreciate it if you would give me some reputation.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 30
Reputation: Mylena is an unknown quantity at this point 
Solved Threads: 1
Mylena Mylena is offline Offline
Light Poster

Re: Site looks very different in IE and Firefox and Mozilla!

 
0
  #5
Sep 4th, 2008
I tried to validate, but it would not do it because my main file is in a php format. It's index.php. It says: Sorry, I am unable to validate this document because its content type is application/x-php, which is not currently supported by this service.

The Content-Type header is sent by your web server (or web browser if you use the file upload interface) and depends on its configuration. Commonly, web servers will have a mapping of filename extensions (such as ".html") to MIME Content-Type values (such as text/html).
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 55
Reputation: MelechM is an unknown quantity at this point 
Solved Threads: 6
MelechM MelechM is offline Offline
Junior Poster in Training

Re: Site looks very different in IE and Firefox and Mozilla!

 
0
  #6
Sep 8th, 2008
shouldn't do that. try and switch the site to html just to view the errors and get back to us. then we could help... as stated above
HTML and CSS Syntax (Toggle Plain Text)
  1. </br>
is not a break...ie wouldn't know what to do there so it dismisses it. [code<br />[/code] is correct, and you should first switch your incorrect breaks with the correct ones. Oh to switch it to html just go look at the source code when viewing the site in the web browser and copy paste it, and save it, then validate it (there is a way to validate files on your computer before you put them up on the web). fix the errors, then if it still doesn't work post the code.
Last edited by MelechM; Sep 8th, 2008 at 2:28 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum


Views: 2447 | Replies: 5
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC