-
1. Re: How do I write code for a website that is viewed in different browsers?
MurraySummers May 29, 2014 10:21 AM (in response to Noradc)The best first approach to this problem is to make sure that your site's pages ALL validate at http://validator.w3.org. If they do, then before doing anything further we'd need to know which version of IE was in use at the Library, and what code you have on the page. A good way to get all of this done is to just post a link to the home page here on the forum so we can see the code and how it looks in all browsers.
-
2. Re: How do I write code for a website that is viewed in different browsers?
Noradc May 29, 2014 10:28 AM (in response to MurraySummers)The link to my home page is as follows...
www.norachristians.com
Thank you.
-
3. Re: Re: How do I write code for a website that is viewed in different browsers?
Nancy O. May 29, 2014 10:48 AM (in response to Noradc)You need to close your img tags (shown below in red).
<img src="images/home_page/snowscene_web.jpg" />
<img src="images/home_page/2011-1_201_p5_christians_nora_pixel2_2_web.jpg" />
<img src="images/home_page/poster_final_web.jpg" />Your home page looks OK in IE8 & 9 but looks bad in Compatablity Mode (which is essentially IE7). Try adding this META tag just below your <title> tags. This will force older IE browser into IE8 or IE9 standards mode if it's available. IE7 is pretty much obsolete now.
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Nancy O.
-
4. Re: Re: How do I write code for a website that is viewed in different browsers?
Noradc Jun 16, 2014 10:05 PM (in response to Nancy O.)Thank you for the information. I changed the xhtml document to html 5. And saw that doing so made no effect in the internet explorer browser. The home page appears fine when it loads. But after clicking on the digital page the images and navigation bars are not located properly. And the thumbnail images have a drop shadow that I don't want. When returning to the home page, the navigation bars are not in the original locations. So now I am correcting the validation errors to the home page and will try to do so to the digital page. I also added the meta tag to both of the pages but without closing the tag. I look forward to finding out if this will make an improvement. I do not know of a way to test the website using my mac computer. I understand that internet explorer can not be downloaded onto a mac. I would appreciate your response to these activities. Thank you.
-
5. Re: How do I write code for a website that is viewed in different browsers?
Nancy O. Jun 19, 2014 10:36 AM (in response to Noradc)If you intend to use HTML5 doc types, you'll need to understand the differences from HTML4 or XHTML doc types. HTML5 has support for new tags and the syntax is a bit different.
Also, you must add a shiv for older IE browsers that do not understand HTML5 tags. Add this to your <head> tags below the META tag I gave you earlier in this thread.
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
Nancy O.


