Computer ForumsComputers  

Go Back   Computer Forums > The World Wide Web > Web Graphics, design, digital images

Reply
 
LinkBack Thread Tools Display Modes
Old 02-18-2008, 03:06 AM   #1 (permalink)
Banned
 
Join Date: Oct 2006
Posts: 82
Default Multi-Browser Design

I am stumped on how to use two different style sheets (.css ) to make a website compatible w/Explorer and Mozilla. I am not even sure if my last statement is how you go about making a website multi-browser compatible??

I would be grateful if someone could help me out w/this design issue.

Cheers,
Williwaw
williwaw is offline   Reply With Quote
Old 02-18-2008, 09:21 AM   #2 (permalink)
Master Techie
 
CrazeD's Avatar
 
Join Date: Feb 2006
Location: Maine
Posts: 2,675
Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: Multi-Browser Design

Code it so it works in Mozilla, since Mozilla is correct, and then make fixes for IE. There are several bugs in IE that make things not work.

It would be more helpful if you posted the code and what wasn't working.
__________________

Need website help? PM me!
CrazeD is offline   Reply With Quote
Old 02-20-2008, 05:38 PM   #3 (permalink)
Techoholic
 
mssssee2's Avatar
 
Join Date: Apr 2007
Location: Behind you!
Posts: 482
Send a message via MSN to mssssee2 Send a message via Yahoo to mssssee2
Default Re: Multi-Browser Design

I think it is called Cross-browser design anyways.

If something works in Firefox so it does in IE, so code it just for firefox as CrazeD said.
__________________
Mike from Greece, 15

http://michael92.deviantart.com/ <-- My DeviantART
Do not click here
mssssee2 is offline   Reply With Quote
Old 02-23-2008, 01:02 AM   #4 (permalink)
Banned
 
Join Date: Oct 2006
Posts: 82
Default Re: Multi-Browser Design

I design all of my code/languages for Mozilla. You may have noticed that all browsers do not read all code/languages the same. It is not a matter of code not working, but rather a matter of implementing multiple Style Sheets to satisfy multiple browsers.

Anyway, here is the fix I was looking for.

Code:
<script>
<!--
var n=navigator.appName
var ns=(n=="Netscape")
var ie=(n=="Microsoft Internet Explorer")
if (ns)
location="index_1.css"
else if (ie)
location="index_2.css"
//-->
</script>
Thanks for your help,
Williwaw
williwaw is offline   Reply With Quote
Old 02-23-2008, 05:39 AM   #5 (permalink)
Commander Super Mod Joker
 
Mak213's Avatar
 
Join Date: Sep 2004
Location: In Trotter's crawl space
Posts: 14,353
Default Re: Multi-Browser Design

Quote:
Originally Posted by CrazeD View Post
Code it so it works in Mozilla, since Mozilla is correct, and then make fixes for IE. There are several bugs in IE that make things not work.

It would be more helpful if you posted the code and what wasn't working.
Actuall Mozilla is not correct. Opera is. Mozila Firefox 2 does not pss the Acid2 test which is the recommended web standards. Opera does. Which means you chouls code for passing the Acid2 test not specifically for a browser.

But he was right. It is jsut a code that helps identify which browser you are using and to load the appropiate CSS. Most sites are coded for IE/Mozilla. But with Acid2 becoming really popular even those browsers are trying to get themselves to pass the test now. Mozilla Firefox 3 and IE8 are slated as to pass teh Acid2 along with Opera. So the coding for websites will start to clear up and be the same no matter which browser you use. Which is what we want.
__________________


Mak213 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Browser Security Test Osiris Browser & General Internet Questions 12 02-15-2008 05:29 PM
How To Design The Photo For The Company Presentation? david55 Web Graphics, design, digital images 1 10-21-2007 09:56 AM
Cloud Web Browser TimoSalomäki Browser & General Internet Questions 8 10-12-2007 10:57 AM
Help with a Browser for my Razr V3i DerekGoodson Phones – PDA’s – Bluetooth – Other handhelds 2 04-19-2007 08:33 PM


All times are GMT -5. The time now is 05:46 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0