[Show all top banners]

nyshangal
Replies to this thread:

More by nyshangal
What people are reading
Subscribers
:: Subscribe
Back to: Computer/IT Refresh page to view new replies
 web-designer
[VIEWED 5049 TIMES]
SAVE! for ease of future access.
Posted on 12-28-09 2:28 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Is there any code to perform cross browser compatibility? or what is cross browser compatibility?

 
Posted on 12-28-09 2:31 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Cross-browser refers to the ability for a website, web application, HTML construct or client-side script to support all the web browsers. The term cross-browser is often confused with multi-browser. Multi-browser means something works with several web browsers. Cross-browser means something works with all versions of all browsers to have existed since the web began.


Means you web site should work in Explorer, firefox, chrome etc


 
Posted on 12-28-09 2:40 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

say suppose i designed a web page and it runs well or it displays all my modules in mozilla, chrome and safari but does not display all the modules IE. is there any code that i need to add or how does it work?

 
Posted on 12-28-09 2:48 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

No idea on such code that will check the compatibility.


May be other can shed more light into the compatibility thing .


As far as I know,


You have to do check  on codes for each browser - and do what that browser supports.


 


 
Posted on 12-28-09 2:57 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

hmmm....anyways thank for the help...

 
Posted on 12-28-09 3:02 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Well I dunno what your exact problem is.But there are several cases when some  part of your pages might not render properly in IE.Mostly this happens in IE6,IE7.Sometimes even in IE8 as well when it displays well in FF or chrome.
There are several hacks available that you can apply based on what is the problem.It depends on what kind of problem it is.First of all make sure that you have written valid css and html which is the reason of 90% of cross browser problem.And then you can apply those hacks  based on your problem.

Just for an example this shows some common problem in IE ad how u can fix it 


Just google it and you will find several tips and tricks to solve these issues...
You might need to write some specific css for IE as well.

Thx
Last edited: 28-Dec-09 03:03 PM

 
Posted on 12-28-09 5:58 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

There is no specific code to make website cross browser. This is all depends on browser and standard W3C recommendations. There are some specific problems with browsers specially IE. Here is what you need to do make website cross browser functional-


Validate your site

Validators are available for both X(HTML) (http://validator.w3.org/) and CSS (http://jigsaw.w3.org/css-validator/). Any errors that show up while validating could be a potential cross-browser functionality broker. So first make sure that there are no errors.

Stay in standards mode

Browsers render HTML in two ways

  • Standard Mode – it works according to w3c recommendations
  •  Quirks mode - technique used by some web browsers for the sake of maintaining backward compatibility with web pages designed for older browsers, instead of strictly complying with W3C and IETF standards in standards mode. In Quirks mode they keep all their old bugs just to help regular users.

So what happens if you run your website in Quirks mode – different browsers render your pages differently which is what you don’t want. That’s why standard mode is recommended. You can limit those problems In Standard Mode by using HTML 4.01 Strict doctype. When you design in "strict mode," Internet Explorer 6 and above will show behavior much closer to that of Firefox, Safari and other modern browsers.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">


Note: you have to specify the strict DOCTYPE at the very top of your page. Otherwise, Internet Explorer runs in a "quirks mode" where it attempts to emulate the behavior of older browsers.

 

Avoid default style

What happens if you don’t use css? Your sites still have certain look. Headers will be larger than text paragraphs and blockquotes will have padding. Size of text is something that is pretty similar across browsers but something that’s not is padding and margins. Just for example- With no styling an gets a padding in Firefox but a margin in IE.

You can solve these kinds of problems by resetting all margins to their defaults at the top of your css file. This can easily be done by typing in * {margin: 0; padding: 0 ;}.

 

Note- * is a universal selector that applies the same rules to all elements.

 

Browser bugs

IE is the worst browser when it comes to handling CSS and it has lots of bugs. The common bugs are listed here so if you encounter any of them, do fix them. Sometimes you may not find your bugs in that list so if nothing else work use “*HTML” hacks. You can use writing like this - * html #element {code ;}. HTML hacks is only for IE. However HTML Hacks does not work in IE7. But there is work around in IE7 that is conditional statements.

Some other things you need to consider – 

  •  Do not use Microsoft Publisher as a web design tool. Microsoft Publisher 2002 and later uses VML in a proprietary way— meaning it works only in Internet Explorer. Front page is recommended either cuz it generates unnecessary code. If you have to use design tool then use Dremweaver or write HTML and CSS yourself.
  •  Include plain-text links to your content and text alternatives (alt attributes) for your images that contain text or are crucial to understand the page. Otherwise browsers for the blind will not work.
  •  Don't build your whole site in Flash. While most people have Flash, browsers for the blind, search engines, handheld devices and users who do not like Flash will completely miss your site.
Last edited: 28-Dec-09 06:04 PM
Last edited: 28-Dec-09 06:06 PM
Last edited: 28-Dec-09 06:08 PM

 
Posted on 12-28-09 8:31 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

thanks for ur help everyone..


 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 30 days
Recommended Popular Threads Controvertial Threads
What are your first memories of when Nepal Television Began?
निगुरो थाहा छ ??
Basnet or Basnyat ??
Sajha has turned into MAGATs nest
Nas and The Bokas: Coming to a Night Club near you
Breathe in. Breathe out.
चितवनको होस्टलमा १३ वर्षीया शालिन पोखरेल झुण्डिएको अवस्था - बलात्कार पछि हत्याको शंका - होस्टेलहरु असुरक्षित
शीर्षक जे पनि हुन सक्छ।
Nepali doctors future black or white usa ?
Doctors dying suddenly or unexpectedly since the rollout of COVID-19 vaccines
TPS Work Permit/How long your took?
Another Song Playing In My Mind
nrn citizenship
TPS Renewal Reregistration
हेर अमेरिकामा नेपालीहरुको बेज्जत
WHAT DO YOU GUYS THINK ABOUT THIS?
Enjoy the beautiful pictures of Astronomy
Rules for thee, not for me, cant debate on substance, start removing threads
Sajha Poll: नेपालका सबैभन्दा आकर्षक महिला को हुन्?
How long does Citizenship take?
Nas and The Bokas: Coming to a Night Club near you
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters