Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Services > Web Designing and Development

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-12-2006, 12:31 PM
Moderator
 
Join Date: Sep 2006
Posts: 629
Send a message via MSN to harry
Default Browser independent site

How can i build a website which will look alike on all browsers ( ie browser independent )
Reply With Quote
  #2 (permalink)  
Old 10-12-2006, 01:24 PM
sanderson's Avatar
Moderator
 
Join Date: Oct 2006
Location: Durham
Posts: 261
Default

Hi harry,
Good intention you have. Though "all browsers" is very broad thing. What do you mean by all browsers? There are many kind of browsers. If you could explain it a bit more would be helpful.
Reply With Quote
  #3 (permalink)  
Old 10-12-2006, 02:31 PM
Senior Member
 
Join Date: Apr 2006
Location: Norway
Posts: 1,640
Default

Develop your site in firefox and test it in different version of IE and thereafter to other browsers like Opera, safari etc, I believe this tutorials will guide you for testing your site in different version of IE; labs.insert-title.com/labs/Multiple-IEs-in-Windows_article795.aspx, Also this thread will help you to check screeshots in different browsers; Browser compatibility
__________________
Adult 4 Fun || Prison Fight
The Funny Box

Autumn is a second spring when every leaf is a flower -Albert Camus
You never know what is enough, unless you know what is more than enough.-William Blake

Last edited by paul; 10-12-2006 at 02:37 PM.
Reply With Quote
  #4 (permalink)  
Old 10-12-2006, 02:35 PM
Senior Member
 
Join Date: Apr 2006
Posts: 295
Default

The general tips to create a cross browser compatible site would be

Use only standard compliant code
Do not use browser specific HTML tags and features as these only work in the browser they were created for.
Validate your HTML/XHTML coding and your cascading style sheets using W3C free validation service.

You can also check out this site browsercam.com. It offers a browser check service and covers just about every popular browser known. It is not free to use but they do offer a free trial.
Reply With Quote
  #5 (permalink)  
Old 10-15-2006, 06:28 PM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

Unfortunately having valid CSS will not solve compatability problems. Cross browser compatability is the single most frustrating element of Web design, unless you happen to be lucky enough to be working on an Intranet.

I'd say code your CSS for Firefox and avoid using IE 'hacks' - they will only break in IE7 anyway. A good way to overcome CSS problems is to use conditional comments in your code to include a stylesheet just for IE. This is perfectly valid and lets you tweak your code just for IE.

For example say your main style sheet is called main.css and you have some tweaks that need to be applied to IE6 only you could create another stylesheet called ie6.css and include this code in

<...>
<


The conditional comment is only seen by IE and only applied to IE6.
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
  #6 (permalink)  
Old 10-15-2006, 06:30 PM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

Oh and if there's a choice between having it look at its best in either FF or IE - go for IE unless your target audience is particularly geeky
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
  #7 (permalink)  
Old 10-16-2006, 01:20 PM
Senior Member
 
Join Date: Apr 2006
Location: Norway
Posts: 1,640
Default

I am not sure how you will come out with PNG problem in IE, as IE does not fully support PNG.
__________________
Adult 4 Fun || Prison Fight
The Funny Box

Autumn is a second spring when every leaf is a flower -Albert Camus
You never know what is enough, unless you know what is more than enough.-William Blake
Reply With Quote
  #8 (permalink)  
Old 10-16-2006, 01:33 PM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

IE7 supports PNG transparency now. IE6 supports PNG but not PNG transparency. There doesn't seem to be any move to add transparency support to IE6 retrospectively.
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
  #9 (permalink)  
Old 10-16-2006, 03:21 PM
Senior Member
 
Join Date: Apr 2006
Location: Norway
Posts: 1,640
Default

Anyway its too late, I am not excited by this as both firefox and Opera even from opensource ground they are providing correct browser rendering.
__________________
Adult 4 Fun || Prison Fight
The Funny Box

Autumn is a second spring when every leaf is a flower -Albert Camus
You never know what is enough, unless you know what is more than enough.-William Blake
Reply With Quote
  #10 (permalink)  
Old 10-16-2006, 05:10 PM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

MS would argue that they actually interpret the W3C specification properly and FF gets it wrong. They are right to an extent as well...FF doesn't render CSS perfectly and the closest browser to passing the acid test is Opera 9.

Simple fact is that it does not matter if MS decides IE should render red as green and add twenty pixels to every margin - the fact is that 80% of your visitors will be using IE so you better code for that.
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
Reply With Quote
  #11 (permalink)  
Old 10-17-2006, 09:46 AM
Senior Member
 
Join Date: Apr 2006
Location: Norway
Posts: 1,640
Default

Quote:
Originally Posted by kev woodman
the fact is that 80% of your visitors will be using IE so you better code for that.

Well, the web is chaotic place, btw such market power of IE has been gained through illegal use of MS's monopoly, critic says IE is moving towards the privatization of the Web- that just seems ridiculous
__________________
Adult 4 Fun || Prison Fight
The Funny Box

Autumn is a second spring when every leaf is a flower -Albert Camus
You never know what is enough, unless you know what is more than enough.-William Blake

Last edited by paul; 10-17-2006 at 09:49 AM.
Reply With Quote
  #12 (permalink)  
Old 10-17-2006, 10:14 AM
kev woodman's Avatar
Premium Member
 
Join Date: Jul 2006
Location: Newport, Wales, UK.
Posts: 1,494
Default

Well we could debate IE vs the oppoisition and how evil MS are all day but the fact is that most people use IE so you have to design for them.
__________________
homo sum: humani nil a me alienum puto ... ( just Google it )
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:21 PM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum