www.webdeveloper.com
Results 1 to 6 of 6

Thread: What's wrong???

  1. #1
    Join Date
    May 2007
    Posts
    1

    What's wrong???

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    <html>
    <head>
    <title>Test Page</title>
    <style type="text/css" media="all" >@import "c:/css/foo.css";</style>
    </head>

    <body>

    Test page

    </body>
    </html>


    IE works fine, but FireFox doesn't want to use it!?
    what's wrong with statement (import css)?
    The css file is OK!

    if I use
    <link rel="stylesheet" type="text/css" href="css/foo.css">

    it works for both browsers, but the thing is that I have to show different css files for different users for the same page and these css files can be everywhere. Any ideas?

    IE 7, Firefox 2.0

    Thanks!

  2. #2
    Join Date
    Nov 2006
    Location
    Springfield, MO
    Posts
    1,541
    Take out the reference to your hard drive (C):

    Code:
    <style type="text/css" media="all" >
    @import "css/foo.css";
    </style>
    Ryan Butler

    Ryan Butler.org

  3. #3
    Join Date
    May 2007
    Posts
    17
    try this one man!

    <style type="text/css" media="all" src="css/foo.css"></style>

    this is the correct semantic..

    let me know if it worked

  4. #4
    Join Date
    May 2005
    Posts
    2,040

  5. #5
    Join Date
    Nov 2006
    Location
    Springfield, MO
    Posts
    1,541
    Quote Originally Posted by carlos1818
    try this one man!

    <style type="text/css" media="all" src="css/foo.css"></style>

    this is the correct semantic..

    let me know if it worked
    My semantic is correct as well
    Ryan Butler

    Ryan Butler.org

  6. #6
    Join Date
    May 2007
    Posts
    17
    I know, Im sorry

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles