Log in

View Full Version : web page compatibility



n1kk1
01-30-2009, 03:49 PM
I've discovered that the reason my new website isn't showing correctly on different pc's is probably as the code is read differently depending what browser you are using.

I use IE at work and it looks fine, this is what I have created it in. Not sure what i am using at home but on my laptop all the images and menu jumps of the screen plus some of the images do not show at all. I've just downloaded firefox and a whole new host of problems have arisen looking at it on there!

So, my question is.. if I have set up my HTML code in IE is there some coding I can put in to make it accessible across all browsers?

I've been pulling my hair out with this and have made several postings to different forums but nobody has offered me any advice, i'm a complete novice with all this and would really appreciate any guidance out there!

http://www.artandescape.com/index.htm

Snookerman
01-30-2009, 04:05 PM
IE is usually the browser with the problems, so the best thing would be to write valid code (http://validator.w3.org/) that will work in the "good" browsers (Fx, Opera, etc) and then try to fix the eventual problems in IE. There is a fix that makes IE behave like other browsers:
http://dean.edwards.name/weblog/2008/01/ie7-2/ (http://dean.edwards.name/weblog/2008/01/ie7-2/)

The first thing you should do is use a valid doctype, change this:

<!DOCTYPE html PUBLIC "O:/websitre/style2.css">


<html>

<head>
to this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Good luck!

blackballoon
02-04-2009, 03:07 PM
Personally I Design all my Websites to look Good in Firefox. Then Preview them in IE to see what might need to be changed a little. Go back to your HTML file and make small chages to make it look good in IE as Well as in Firefox. usually firefox and safari have the same issues. IE is not the best Brower out there. I find it doesn't read the code as well as Firefox. That's why i build mine based on firefox.

Twey
02-04-2009, 06:54 PM
Snookerman: why did you choose ISO-8859-1? The page at the moment doesn't appear to have any non-ASCII-compatible characters in it, so I see no reason not to choose UTF-8, giving a much broader selection of characters to use later if they should need to be added.

Snookerman
02-04-2009, 09:02 PM
I didn't really give it much thought, I just grabbed the first doctype I had handy (don't know doctypes by heart :D), which just happened to be that and I didn't have time to look at the OP's page.

n1kk1 in case you ever revisit this thread, use this one:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Good luck!

Twey
02-04-2009, 09:55 PM
Well, that's not actually part of the DOCTYPE, but I take your meaning :)

n1kk1
02-05-2009, 10:05 AM
Thanks for the feedback all I will take note

Snookerman
02-05-2009, 12:17 PM
You're welcome, glad to help!

Good luck with your site!