Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Post Web Site not working on Mozilla Firefox

    Web Site not working on Mozilla Firefox but working on IE and Chrome
    Here's the code:
    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta content="utf-8" http-equiv="encoding">
    <title>From the Eyes of Glass</title>
    <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
    <script type="text/javascript" src="jquery-1.10.1.js"></script>
    <script type="text/javascript" src="style.js"></script>
    </head>
    <body background="Images\3.jpg">
    <h1><img id="head" src="Images\banner.png"/></h1>
    <div id="menubar">
    <table cellpadding="10px">
    <tr>
    <td><div id="home" width="40px"><a href="http:\\rohithiyer.co.nf"><img src="Images\home.png"/></a></div></td>
    <td><div id="gallery"><img src="Images\gallery1.png"/></div></td>
    <td><div id="about"><img src="Images\about.png"/></div></td>
    <td><div id="contact"><img src="Images\contact.png"/></div></td>
    </tr>
    </table>
    </div>
    </body>
    </html>

    In mozilla the website doesn't even load.
    Could really use some help with this.

    Thank You.

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,950
    Thanks
    9
    Thanked 724 Times in 718 Posts
    Pretty hard to test this without the images..can you give a link to your site?
    There's no obvious reason why this should fail in FF.
    Use the W3C HTML Validator and CSS Validator to check your code and Firebug to see what css is applied to an element
    Read Steve Krug's book Don't Make Me Think - essential reading on web usability
    I don't recommend much, but I do recommend Clook for UK web hosting

  • #3
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,950
    Thanks
    9
    Thanked 724 Times in 718 Posts
    Cancel that...
    You're using backslashes instead of forward slashes.
    For example:

    Code:
    <img id="head" src="Images\banner.png"/></h1>
    should be

    Code:
    <img id="head" src="Images/banner.png"/></h1>
    Use the W3C HTML Validator and CSS Validator to check your code and Firebug to see what css is applied to an element
    Read Steve Krug's book Don't Make Me Think - essential reading on web usability
    I don't recommend much, but I do recommend Clook for UK web hosting

  • Users who have thanked SB65 for this post:

    demonwheelz (06-07-2013)

  • #4
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    you are also declaring the html tag twice. worth mentioning

    Code:
    <!DOCTYPE html>
    <html>

  • #5
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,950
    Thanks
    9
    Thanked 724 Times in 718 Posts
    Um, no, that's correct, one is the doctype, and the next is the html opening tag.
    Use the W3C HTML Validator and CSS Validator to check your code and Firebug to see what css is applied to an element
    Read Steve Krug's book Don't Make Me Think - essential reading on web usability
    I don't recommend much, but I do recommend Clook for UK web hosting

  • Users who have thanked SB65 for this post:

    DanInMa (06-07-2013)

  • #6
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    Quote Originally Posted by SB65 View Post
    Um, no, that's correct, one is the doctype, and the next is the html opening tag.
    Ah thanks! ( Sorry!) havent used html5 spec and it didnt look right. I appreciate the correction

  • #7
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks all for the reply
    SB65 : here's the link for the website :
    Images is a directory hence those slashes but i dont think that would effect the whoel website not loading on Mozilla

  • #8
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by SB65 View Post
    Cancel that...
    You're using backslashes instead of forward slashes.
    For example:

    Code:
    <img id="head" src="Images\banner.png"/></h1>
    should be

    Code:
    <img id="head" src="Images/banner.png"/></h1>
    I got my site up and running ,the problem was i declared the encoding tag twice
    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta content="utf-8" http-equiv="encoding">
    <title>From the Eyes of Glass</title>
    <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
    <script type="text/javascript" src="jquery-1.10.1.js"></script>
    <script type="text/javascript" src="style.js"></script>
    </head>
    <body background="Images\3.jpg">
    <h1><img id="head" src="Images\banner.png"/></h1>
    <div id="menubar">
    <table cellpadding="10px">
    <tr>
    <td><div id="home" width="40px"><a href="http:\\rohithiyer.co.nf"><img src="Images\home.png"/></a></div></td>
    <td><div id="gallery"><img src="Images\gallery1.png"/></div></td>
    <td><div id="about"><img src="Images\about.png"/></div></td>
    <td><div id="contact"><img src="Images\contact.png"/></div></td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    Just deleted that 1 as:
    HTML4
    <meta http-equiv="content-type" content="text/html; charset=utf-8" /> &
    HTML5
    <meta content="utf-8" http-equiv="encoding"> both mean the same thing Thats y it was conflicting with the double declaration
    Working fine and also what u said about the image part helped a lot
    Really Appreciate it
    Thank you

  • #9
    New Coder
    Join Date
    Jun 2013
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Web Site not working on Mozilla Firefox

    Hi
    Firefox caches websites, which means it saves some files on your machine so that it doesn't have to re-download everything when you visit sites.

    If your website are not working in Mozilla Firefox,you should clear your caches on your website.
    At the top of the Firefox window, click on the Firefox button, go over to the History menu and select Clear Recent History
    And the Time Range to clear: drop-down, select Everything.
    Click the arrow next to Details to display the list of items that can be cleared.
    Select both Cookies and Cache.
    Click Clear Now.

  • #10
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,607
    Thanks
    6
    Thanked 997 Times in 970 Posts
    Quote Originally Posted by demonwheelz View Post
    Just deleted that 1 as:
    HTML4
    <meta http-equiv="content-type" content="text/html; charset=utf-8" /> &
    HTML5
    <meta content="utf-8" http-equiv="encoding"> both mean the same thing Thats y it was conflicting with the double declaration
    Working fine and also what u said about the image part helped a lot
    Really Appreciate it
    Thank you
    By the way: the correct character encoding declaration in HTML 5 is <meta charset="utf-8">, nothing else. (of course you can still use the longer declaration as in HTML 4)


  •  

    Posting Permissions

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