Jul 20, 2008

Firefox And Ie Preview

Free Web Hosting, No Ads > CONTRIBUTE > The Internet > Web Design

free web hosting

Firefox And Ie Preview

malish
While I was making my web-site in front page, I've noticed that when preview it Internet Explorer it often looks very different from Mozzila's Firefox. I've got worried that my web-site might look good in Firefox but simultaneously show up messed up in Internet Explorer web browser. So. now I have to adjust HTML code for both browsers. Are there any suggestions of how to properly use html code to be able to view web pages in both web browsers the same? Maybe I need to use some special tags or something?

Reply

truefusion
I use php to take care of that. By showing one layout for Mozilla users and one layout for IE users. That way i wont have to worry much about if something looks bad in a certain browser or not.

This is the code i use:
CODE

<?php

if (!strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE'))
{
include("firefox/index.php");
}
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE'))
{
include("ie/index.php");
}

?>

Reply

fffanatics
If you stick to the HTML standards, your page should look OK in both. However, if you use any DHTML and/or CSS the best thing to do is view it in both browsers and fix the code that doesnt display right. There are ways to write CSS such that one property works only if IE is used since IE doesnt abide by all the standards like Firefox. On a side note, even if the page works fine in IE and Firefox you want to test it in Opera since it also is a popular browser and some things still look different even though they also abide by all the standards

Reply

Tyssen
QUOTE(truefusion @ Nov 22 2005, 02:37 PM)
I use php to take care of that. By showing one layout for Mozilla users and one layout for IE users. That way i wont have to worry much about if something looks bad in a certain browser or not.

Doesn't that create twice as much work for you when you could really just get it to work right in both?
When designing websites, especially when using CSS, it's a good idea to get your site looking right in Firefox (which adheres more closely to the standards thatn IE) and then use various techniques/hacks to get it working right in IE. There are certain CSS selectors you can use to target certain rules at IE which other modern browsers ignore.

Reply

truefusion
QUOTE(Tyssen @ Nov 22 2005, 01:24 AM)
Doesn't that create twice as much work for you when you could really just get it to work right in both?

Eh, it doesnt seem like extra work for me. The Firefox portion has little or no graphics involved, and coding the HTML isnt much of a hassle.

Reply

rvalkass
I hate those scripts that detect what browser you are using and change the pages accordingly. Opera can be set to appear as Opera, IE or Netscape Navigator. A large number of people set it to IE otherwise you get webmasters who can't be bothered to code sites who just put a note up telling you to use IE.

Whenever I create a site I type all the code, run it though the W3C verifier and then put it into the browsers. Then I spend ages adapting my code so that regardless of which browser you use it will work. I also test my sites on Safari, just to make sure.

I advise you do the same, malish. Just run your code through the validator here and bring it up to standard, then fix the browsers that don't play fair.

Reply

alexia
Ie and firefox is work with images true
your design can have many images with good tabels
if you manage tables good with nice html code you can make good privew in ie and firefox

Reply

Angel
This best way, as many have already mentioned, is just to test your site in both browers. I've had bad experiences with IE looking enirely out of place while in Firefox, everything looks perfectly fine. But, if you think a little and play around, you should be able to create something that looks fine in both browsers.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : firefox preview

  1. Firefox Extensions Dream Package #1: Web Design Extensions - add-ons and plug ins (26)
    Well since Fire fox got updated and I have got the universal package browser for web design I
    thought why not share it to those who do not know about these tools so here we go. I will explain
    each tool and what it is used for and then give you the simple instructions on where to get it and
    where to find it. First download Firefox http://www.mozilla.com/products/download.h...&lang=en-US
    then install it and your set from there, Now for the plug-ins and add-ons. ColorZilla What
    this program does is that once you select it a small ink dropper icon will show up and ...
  2. Firefox V/s Internet Explorer For Web Design - (14)
    hi friends. I have noticed one thing that when we surf web with columns on it we see that internet
    explorer shows the site in a nice way. But when we surf the same site with firefox, it destroys the
    whole structure of site. and shows the columns very clearly and boldly. Can any body tell me
    what's wrong with firefox?...
  3. Firefox Explodes When I Put Height To 100% - What's up with that? (3)
  4. Help! Firefox And Ie Not Playing Nice! - Div overflow problems! (8)
    I recently made a website for a friend. http://www.TheQuotes.co.nr Now, here is the problem. It
    seems if you load it with FF the middle section background will not strech. But if you use IE it
    will. Does anyone know why this is happening or how to fix it? Here is the code I have in the
    index file. CODE <head> <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1" /> <title>The Quotes</title>
    <style type="text/css"> a{ color: #ffffff; size:-1;} </style>
    </head&...
  5. Preview Your Website In Ie From Non-windows Os - (9)
    If you are using a non-windows based OS probably Linux or Mac OS may be even Solaris or OS/2, you
    can preview how you website or new site design looks in Internet Explorer. A site by Daniel Vine
    provides you this facility for free, Just head over to http://www.danvine.com/iecapture/ and
    enter your sites URL to preview. This site will automatically create a screen shot of your site how
    it appears in IE. Usually it will take longer to get a screenshot because always there will be
    thousands of such sites queued to be previewed. Post your comments and experiences....
  6. What Is So Great About Firefox? - is IE going down the tubes? (27)
    What is so great about Firefox? The last I knew 98% of people were using Internet Explorer, so as a
    web designer, I really only had to worry about Internet Explorer displaying my website correctly.
    I've read that Firefox now makes up about 20% of the browser market. These two browsers display
    web pages completely different and it's a bit frustrating to say the least! Why are people
    suddenly using Firefox and not Internet Explorer? Did you switch from Internet Explorer to Firefox
    and if so why?...



Looking for firefox, preview

Searching Video's for firefox, preview
advertisement



Firefox And Ie Preview



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE