CSS, Java, and Firefox...O my!!!

Discussion in 'HTML & Website Design' started by wampus, Jul 17, 2007.

  1. #1
    I've been working on a new site where I work. I found a script for some nice CSS drop-down menus and decided to throw those in there. They work great in IE7...but not at all in Firefox. I am a network admin....not a web designer, so this is sorta out of my league. I've used the WC3 CSS Validator and it returns no errors. Any help or suggestions would be greatly appreciated. Here are the links:

    http://scs.k12.al.us - The site
    http://scs.k12.al.us/scsdrop.css - The style sheet
    http://scs.k12.al.us/csshover.htc - The Java
     
    wampus, Jul 17, 2007 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Give me a few - I'm going through other threads right now.

    But in the meantime, please understand that Java and JavaScript are not the same thing, and are nowhere close to being related to each other.
     
    Dan Schulz, Jul 17, 2007 IP
  3. wampus

    wampus Guest

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    understood =) .... like i said, not a developer. You'll have to bare with me here.
     
    wampus, Jul 17, 2007 IP
  4. skibladner

    skibladner Peon

    Messages:
    1,149
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Curious...I don't see a drop down menu at all in firefox, though it's there in IE
     
    skibladner, Jul 17, 2007 IP
  5. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Without looking at the code (which I'd probably replace anyway) for the rotating image script, my guess is the script is what's causing the problem.

    I'd re-write it myself, but I don't know if you HAVE to support Internet Explorer 5 and 5.5 though.
     
    Dan Schulz, Jul 17, 2007 IP
  6. zerodigit

    zerodigit Banned

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    have you tried , separating the css code, e.g. external css, by separating the codes can be read by firefox because css is just a script.....
     
    zerodigit, Jul 18, 2007 IP
  7. wampus

    wampus Guest

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Ok...I've tried moving all the CSS out of the HTML and into seperate files. I got the same behavior from that. Then I tried commenting out the rotating image script, with and without CSS in the document, and got the same results there too. Because this site is for a public school system, I would love to keep it compatible with as many browsers as possible. But im really not concerned with IE5. Firefox, on the other hand, is a must. I really appreciate all the help. I've been trying to get this working for weeks now and i'm about out of ideas.
     
    wampus, Jul 18, 2007 IP
  8. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Then I suggest a re-write. Would you mind if I took care of the template for you this weekend (I'll make sure it works in IE 6, 7, Firefox, K-Meleon, Netcape 7+, Opera and Safari)?
     
    Dan Schulz, Jul 18, 2007 IP
  9. wampus

    wampus Guest

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    You guys won't believe this. The problem was in the HTML.

    Where I had:

    <ul>
    <li><h2>Home</h2></li>
    <ul>
    <li><a href="index.htm">Sheffield City Schools Home Page</a></li>
    </ul>
    </ul>

    Should have been:

    <ul>
    <li><h2>Home</h2>
    <ul>
    <li><a href="index.htm">Sheffield City Schools Home Page</a></li>
    </ul>
    </li>
    </ul>

    Just a few quick changes and all will be well. Thanks for all the help. Sorry if I ruined your weekend dan :)
     
    wampus, Jul 18, 2007 IP
  10. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #10
    It's ok. I did notice the nesting error, but that was the least of my concerns with the site.
     
    Dan Schulz, Jul 18, 2007 IP
  11. wampus

    wampus Guest

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    So what suggestions do you have for it? I realize the HTML is not exactly optimized for CSS. Is that the only thing?
     
    wampus, Jul 19, 2007 IP
  12. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Well for starters, you're using proprietary HTML code that's preventing the page from validating (<marquee> being one of them), tables for layout (which can prevent mobile devices like PDAs and Web enabled cell phones from displaying a page properly), and you also have too much CSS to pull off what you want. You're also inlining JavaScript and CSS code, which just increases the weight of the page and makes maintenance of the entire site a nightmare, on top of using other HTML elements for purposes other than which they were intended.

    In other words, I'd scrap it and start over. I have a birthday party to attend on Saturday, but I'll be more than happy to look into a redesign using clean, valid and semantic markup when I get back from it. Just let me know. :)
     
    Dan Schulz, Jul 19, 2007 IP
  13. mgware

    mgware Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Just a fast advice, never prefer design over functionality ;)
     
    mgware, Jul 20, 2007 IP
  14. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Actually the two go hand in hand. But if I had to choose one over the other, I'd go with functionality since the person visiting the site comes first. :)

    But I'd also make sure that the design also does the job it's supposed to do as much as I possibly could.
     
    Dan Schulz, Jul 20, 2007 IP