Results 1 to 8 of 8

Thread: web page compatibility

  1. #1
    Join Date
    Jan 2009
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default web page compatibility

    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

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    IE is usually the browser with the problems, so the best thing would be to write valid code 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/

    The first thing you should do is use a valid doctype, change this:
    HTML Code:
    <!DOCTYPE html PUBLIC "O:/websitre/style2.css">
    
    
    <html>
    
    <head>
    to this:
    HTML Code:
    <!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!

  3. #3
    Join Date
    Jan 2009
    Posts
    12
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    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.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    I didn't really give it much thought, I just grabbed the first doctype I had handy (don't know doctypes by heart ), 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:
    HTML Code:
    <!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!

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Well, that's not actually part of the DOCTYPE, but I take your meaning
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Jan 2009
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the feedback all I will take note

  8. #8
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome, glad to help!

    Good luck with your site!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •