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.
Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    New Coder
    Join Date
    May 2008
    Location
    Newcastle Upon Tyne
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    website works in IE but not Firefox.

    Right. My website, http://www.visualimpactuk.com, which I have designed with IE in mind works fine in IE, and I would say it's complete.
    In Firefox however, all my images (which are mostly <div> positioned) are in the wrong place. Also my scrollbars don't work.

    I realise the scrollbars don't work because FF doesn't allow some javascript.
    But how can I position the images so they appear correctly in Firefox without moving them out of place for IE users?

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    I haven't checked the layout, but to expect a standard behavior, you have to ensure that your document is a standard one. And to do this, first of all you need a valid DOCTYPE as the very first line of your document.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    In addition that, you are missing a body tag around your content on your main index page.

    Unrelated to your current problem: You could also make it so your useless no right click script loads from a external js file so that after the first page it is cached and the same script isn't loaded with each page, which would reduce the file size of all your pages.
    OracleGuy

  • #4
    Regular Coder
    Join Date
    Oct 2006
    Posts
    164
    Thanks
    5
    Thanked 0 Times in 0 Posts
    It is so nice of you to disable the right click. You have fantastic web design skills

    If you didnt notice, that was 100&#37; sarcasm. Dont ever disable the right click! Its annoying and it makes me hate you! Good luck with everything
    Not much, but its something.

  • #5
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by Sman5109 View Post
    It is so nice of you to disable the right click. You have fantastic web design skills
    I'm not condoning the use of those scripts but at least from the user's end, you can prevent those scripts from working. In Firefox for example there is a setting under the content tab (in the options dialog) to prevent javascript from messing with the context menu.
    OracleGuy

  • #6
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    index.html loads index2.html into an iframe.
    index2.html loads index3.html into an iframe.
    index3.html loads home.html into an iframe.

    This is not the way to center content on a page. Learn CSS. Stop using iframes for layout. Stop using images of text for navigation, stop using outdated javascript that doesn't work cross-browser and, above all else, stop designing with IE in mind. Your life - and your website - will be greatly improved.

  • #7
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,918
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    I can only second what the others have said but I have to add something for further clarification:

    Firefox (as well as Opera, Safari, Konqueror, among others) shows you just what you have coded. If there’s something wrong in Firefox it’s because there’s something wrong in your code, not because Fx is stupid. Internet Explorer tries to make a sense out of what you’ve written and lets you slip through with errors but that’s not right because it will never force you (or anyone) to write proper code.

    And in case you didn’t notice: The browsers I mentioned are more than the ones you were talking about. And funnily Internet Explorer is the only one that displays it as you want so clearly, it should come to you that IE can’t be the only one that’s correct. Rather, it’s vice versa: IE is the only one that’s wrong.

  • #8
    Regular Coder
    Join Date
    Oct 2006
    Posts
    164
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    And funnily Internet Explorer is the only one that displays it as you want so clearly, it should come to you that IE canít be the only one thatís correct. Rather, itís vice versa: IE is the only one thatís wrong.
    I love the way you said that
    Not much, but its something.

  • #9
    New Coder
    Join Date
    May 2008
    Location
    Newcastle Upon Tyne
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts
    And funnily Internet Explorer is the only one that displays it as you want so clearly, it should come to you that IE canít be the only one thatís correct. Rather, itís vice versa: IE is the only one thatís wrong.
    I have only tested using Firefox and IE.

    Besides, Most people use IE. I havn't made this website to be viewed by web designers. IE may be the only browser to be displaying incorrectly, but I'm not going to alter it for Safari, Firefox etc. users and therefore mess it up for the majority who use IE.

    I am not a web designer. I know I can make the pages load faster etc in certain ways - but I can't be bothered to learn a language simply to speed it up a little. I am simply making my company's website so people can find us and have instant access to a portfolio
    Last edited by Bodger Bowham; 05-22-2008 at 05:17 PM.

  • #10
    Regular Coder
    Join Date
    Oct 2006
    Posts
    164
    Thanks
    5
    Thanked 0 Times in 0 Posts
    BTW, Im using FF3 and everything seems to look fine....
    Not much, but its something.

  • #11
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by Bodger Bowham View Post
    Besides, Most people use IE. I havn't made this website to be viewed by web designers. IE may be the only browser to be displaying incorrectly, but I'm not going to alter it for Safari, Firefox etc. users and therefore mess it up for the majority who use IE.
    This isn't 2002, not only web developers use something other than IE. What about people using computers where IE doesn't exist?

    If you make it work in everything but IE usually you need none to small adjustments to make it work in IE the same as the others. For IE you can apply a second stylesheet using conditional comments that implements the minor fixes to get IE working right but will not effect standards compliant browsers.
    OracleGuy

  • #12
    New Coder
    Join Date
    May 2008
    Location
    Newcastle Upon Tyne
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts
    BTW, Im using FF3 and everything seems to look fine....
    It does look better in FF3 than it does in FF2, but it still isn't perfect.

    See, if the website looks different for each version of Firefox, It's hardly going to encourage me to design with this browser in mind.

    If you make it work in everything but IE usually you need none to small adjustments to make it work in IE the same as the others. For IE you can apply a second stylesheet using conditional comments that implements the minor fixes to get IE working right but will not effect standards compliant browsers.
    I wish I could do that, but I don't understand CSS. I've tried, but I just can't get my head around it.

  • #13
    Regular Coder
    Join Date
    Oct 2006
    Posts
    164
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Bodger Bowham View Post
    See, if the website looks different for each version of Firefox, It's hardly going to encourage me to design with this browser in mind.
    Thats because FF3 is better then FF2 at displaying faulty/non compatible code. I am so tired of IE corrupting new coders.

    Quote Originally Posted by Bodger Bowham View Post
    I wish I could do that, but I don't understand CSS. I've tried, but I just can't get my head around it.
    All you have to do is remove ALL html styling and force yourself to make the page look the same by googling how to do the sames styles in css. Its also about motivation. You dont care about your code being cross-browser compatible so your not going to try.
    Not much, but its something.

  • #14
    Regular Coder
    Join Date
    Nov 2005
    Posts
    329
    Thanks
    3
    Thanked 19 Times in 19 Posts
    The easiest way is to build your site using css stylesheets (simple to learn and easy to do if you take a little time to understand it), and try it out on the web compliant browsers (FireFox, Safari, Opera, Netscape, etc.). If it works on one, it will probably work on the others. After it works as it should on these browsers, make a separate css stylesheet for the dumb IE, and put in a conditional tag to open the site with the IE stylesheet if IE is being used as the browser.

    Good luck!

    Avril

  • #15
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Building up standards-compliant for non-IE is not hard. I've found on many occasions that I sometimes don't even need to add in an extra stylesheet. Coding for IE is a practice which we stopped using ages ago, because about half the world doesn't use IE (guessing, haven't looked at most recent estimates.)


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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