SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE10, IE9 not accecpting my external style sheet

    Hi Friends,

    I have problem in IE10, IE9 my website css External Stylesheet not working but internal styles working fine,

    could you please share your this issues solutions.

    Regards,
    Vijay

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,496
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    Please post the code of your link to the external style sheet.

  3. #3
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by guido2004 View Post
    Please post the code of your link to the external style sheet.

    <link rel="stylesheet" type="text/css" href="menu.css" />

  4. #4
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,496
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    And you're sure your stylesheet is called menu.css and it is present in the same folder as the html file?
    Does it work in other browsers? (FF, Opera, Chrome)

  5. #5
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,176
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    As guido says, the way you have set that up means that the CSS file will need to be in the same folder as the page it's linked to. That code you posted needs to be in the head of the document. And make sure that the file name is all in lower case, to match the code above.

  6. #6
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes css file same folder and otherwise my page working other browser. (ff, chorme, Opera).

  7. #7
    SitePoint Member
    Join Date
    Aug 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    code like this...

    http://jsfiddle.net/srvijay78/3jgmh/

    but i need css external link.. can you please check it.

  8. #8
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,176
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Does the jsFiddle example not work for you in IE9/10? It works fine for me.

  9. #9
    SitePoint Evangelist silver trophybronze trophy
    Join Date
    Jul 2013
    Posts
    406
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    If it's working for IE9/IE10 as styleblock in the head, then the styles must be OK.
    If the external stylesheet is working in FF etc., then the reference (filename and directory) must be good.

    • Are there other stylesheets called in the head (in a Conditional Comment, so IE-only), that can overrule the menu-stylesheet?
    • Are you real (online) testing with a real IE9/IE10? (not a Preview in an editor)

  10. #10
    SitePoint Member
    Join Date
    Jul 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up same issue resolved on my end..

    I was struggling with some thing similar in which file was started with <!DOCTYPE html> tag
    Solution in my case was to end the the external link, which was understood by firefox but not by ie9 or chrome.
    So, link became for me as
    <link href="static/css/skin-custom/custom.css" rel="stylesheet"
    type="text/css" />
    </head>
    Quote Originally Posted by srvijay78 View Post
    Hi Friends,

    I have problem in IE10, IE9 my website css External Stylesheet not working but internal styles working fine,

    could you please share your this issues solutions.

    Regards,
    Vijay


Tags for this Thread

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
  •