Results 1 to 5 of 5

Thread: Compatibility Problems- Help!

  1. #1
    Join Date
    Aug 2005
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Compatibility Problems- Help!

    Hey guys, I am really new to CSS and I am having some problems with browser compatibility. The site is: http://www.wakaorphanage.org/style1.htm
    The site is running java as well as a stylesheet and it seems only to open in Firefox. I am running on a deadline and I am getting pretty frustrated with troubleshooting. I know the problem is pretty simple but I can't put my finger on it. If anyone could take a look, I would really really appreciate it.

    P.S. Feel free to give me constructive critiscism on my sloppy newbie CSS programming. Im not easily offended and I would love advice.

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    that doesnt look too bad for being a "newbie" to web development. your page has some JavaScript elements, not Java. There is a big difference between the two, but for these purposes just know that they are not the same.

    and as for your site not rendering outside of Firefox, it is because of your embedded stylesheet

    Code:
    </script>
    <style type="text/css">
    <!--
    
    .style11 {font-size: 18px}
    // -->
    
    </style>
    you didn't have and end to your starting comment tag so html left the rest of the page blank.

  3. #3
    Join Date
    Aug 2005
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Wow, Than You. Amazing how a single tag can ruin your life.

  4. #4
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    yah, they can be a royal Pain sometimes

    depending on what type of comment you use you can get away with it sometimes though.. but you had a HTML comment tag, so thats why it ignored everything... I expected that Firefox / IE would have actually been switched in rendering ways, IE usually interprets your ending tag , while FF usually would have rendered the way that IE did :haha: oh well.

    Glad I could help.

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

    Default

    That's now invalid CSS... the double slash (//) is not a comment marker in CSS. You'd have to use /* and */.

    There's really no need for those SGML comment markers any more. All browsers in serious use today either parse the stylesheet or ignore it, and the comment markers cause the stylesheet to be ignored in XHTML.
    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!

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
  •