Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Firefox And Ie Preview
malish
post Nov 22 2005, 03:22 AM
Post #1


Super Member
*********

Group: Members
Posts: 213
Joined: 13-July 05
Member No.: 9,394



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?
Go to the top of the page
 
+Quote Post
truefusion
post Nov 22 2005, 04:37 AM
Post #2


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,861
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528
T17 GFX Crew



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");
}

?>
Go to the top of the page
 
+Quote Post
fffanatics
post Nov 22 2005, 05:10 AM
Post #3


Privileged Member
*********

Group: [HOSTED]
Posts: 937
Joined: 14-April 05
From: West Chester, PA
Member No.: 5,636



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
Go to the top of the page
 
+Quote Post
Tyssen
post Nov 22 2005, 05:24 AM
Post #4



***********

Group: Members
Posts: 1,161
Joined: 9-May 05
From: Brisbane, QLD
Member No.: 6,818



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.
Go to the top of the page
 
+Quote Post
truefusion
post Nov 22 2005, 06:30 AM
Post #5


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,861
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528
T17 GFX Crew



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.
Go to the top of the page
 
+Quote Post
rvalkass
post Nov 22 2005, 06:58 AM
Post #6


apt-get moo
Group Icon

Group: [MODERATOR]
Posts: 2,052
Joined: 28-May 05
From: Hertfordshire, England
Member No.: 7,593
Spam Patrol



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.
Go to the top of the page
 
+Quote Post
alexia
post Nov 25 2005, 09:14 AM
Post #7


Super Member
*********

Group: Members
Posts: 310
Joined: 9-February 05
From: Italian
Member No.: 3,677



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
Go to the top of the page
 
+Quote Post
Angel
post Nov 27 2005, 06:54 PM
Post #8


Newbie [Level 2]
**

Group: Members
Posts: 37
Joined: 26-November 05
Member No.: 14,952



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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Firefox Extensions Dream Package #1: Web Design Extensions(26)
  2. Help! Firefox And Ie Not Playing Nice!(8)
  3. Firefox V/s Internet Explorer For Web Design(14)
  4. Firefox Explodes When I Put Height To 100%(3)