My css does not work in firefox

Discussion in 'HTML & Website Design' started by jkjazz, Jan 28, 2009.

  1. #1
    I built a site for a client and it looks great in IE.

    The CSS does not work in Firefox.
    Please have a look in both.

    What can I do?

    HELP!!!

    http://tinyurl.com/brqwfl
     
    jkjazz, Jan 28, 2009 IP
  2. scubita

    scubita Peon

    Messages:
    5,550
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You should learn to code cross browser :) Feel free to share the CSS file so we can help you.

    edit: How did you coded that?
     
    scubita, Jan 28, 2009 IP
  3. SiteTalkZone

    SiteTalkZone Peon

    Messages:
    243
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Heh you have just discovered the bane of the web designers life. Good luck!
     
    SiteTalkZone, Jan 28, 2009 IP
    jkjazz likes this.
  4. SiteTalkZone

    SiteTalkZone Peon

    Messages:
    243
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Oh it should be src="styles.css" not href="styles.css" and you dont need ID elements in there. Why have you attached so many CSS files?

    Personally I use: <style type="text/css" media="screen">@import "css/styles.css";</style>
     
    SiteTalkZone, Jan 28, 2009 IP
  5. jkjazz

    jkjazz Peon

    Messages:
    1,717
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The site is built on a template. The CSS files came with the template.

    I sent you an IM
     
    jkjazz, Jan 28, 2009 IP
  6. SiteTalkZone

    SiteTalkZone Peon

    Messages:
    243
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Replied thanks.
     
    SiteTalkZone, Jan 28, 2009 IP
  7. andrewwise

    andrewwise Peon

    Messages:
    119
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    developing for firefox is a lot easier than IE, so if your site looks good in IE, then you're almost there. Firefox uses a better rendering engine, so they excuse a lot of the mistakes you typically make in IE.
     
    andrewwise, Jan 28, 2009 IP
  8. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #8
    Your css link should be 'href=' not 'src='.
     
    drhowarddrfine, Jan 28, 2009 IP
  9. alexandrus

    alexandrus Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Here http://www.w3schools.com/TAGS/tag_link.asp you can see how link to css stylesheet should look like. There is no "src" attribute in <link> tag. As drhowarddrfine advises you should use href.
     
    alexandrus, Jan 28, 2009 IP
  10. SiteTalkZone

    SiteTalkZone Peon

    Messages:
    243
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Yeah woops me having a blond moment thats images.
     
    SiteTalkZone, Jan 29, 2009 IP
  11. jkjazz

    jkjazz Peon

    Messages:
    1,717
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Yeah, but we got it fixed. All is well!
     
    jkjazz, Jan 29, 2009 IP