Tips to make your site compatible with Google Chrome

If your site doesn't look quite right in Google Chrome but works fine in Safari, here are some tips to get your site up with chrome: it's possible your site may just not recognize Chrome's user-agent string. Commonly, sites use JavaScript to 'sniff' the navigator.userAgent property for "Chrome" or "Safari", but you should use proper object […]

If your site doesn't look quite right in Google Chrome but works fine in Safari, here are some tips to get your site up with chrome:

  • it's possible your site may just not recognize Chrome's user-agent string. Commonly, sites use JavaScript to 'sniff' the navigator.userAgent property for "Chrome" or "Safari", but you should use proper object detection if possible.
  • Google Chrome doesn't support ActiveX plug-ins, but does support NPAPI plug-ins. This means you can show plug-in content like Flash and Java in Google Chrome the same way you do with Firefox and Safari.
  • If text looks a bit off, make sure you provide the proper content type and character encoding information in the <head> section.
  • Don't put block elements inside inline elements.

About The Author

Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he's engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.