SitePoint Sponsor

User Tag List

Results 1 to 17 of 17
  1. #1
    SitePoint Evangelist ktown's Avatar
    Join Date
    May 2001
    Location
    toronto
    Posts
    478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    EI doesn't see @import???

    hey all

    this is pretty tragic
    EI 6 can't seem to read my whole @import stylesheet.

    it doesn't ignore the "whole" thing - which is also wierd but it everything but my body and #div definitions...

    please help

    this is how i attach it

    Code:
    <!--<link href="stylesNN.css" rel="stylesheet" type="text/css">-->
     
    
    <style type="text/css">
    <!--
    @import url(styles.css);
    -->
    </style>
    i have my nn4 sheet hidden right now trying to figure this thing out

    has anyone ever encountered this before?
    thanks!
    !nina

  2. #2
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've never heard of EI 6. Could you have meant IE 6?

  3. #3
    SitePoint Evangelist ktown's Avatar
    Join Date
    May 2001
    Location
    toronto
    Posts
    478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah sorry
    thats exactly what i mean

  4. #4
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem. I was just asking in case it was a typo. I fixed the thread title for you.

  5. #5
    SitePoint Wizard silver trophy TheOriginalH's Avatar
    Join Date
    Aug 2000
    Location
    Thailand
    Posts
    4,810
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Can we see the actuall .css file? If it's reading some but not all of it it's more likely that the error is in the file itself...
    ~The Artist Latterly Known as Crazy Hamster~
    922ee590a26bd62eb9b33cf2877a00df
    Currently delving into Django, GIT & CentOS

  6. #6
    SitePoint Evangelist ktown's Avatar
    Join Date
    May 2001
    Location
    toronto
    Posts
    478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey
    sorry for the delayed reply but i was away for the weekend
    my css file is here http://nicotine.golden.net/~nina/webghg/styles.css
    or
    http://nicotine.golden.net/~nina/webghg/stylesNN.css

    thanks again - and for fixing the thread

  7. #7
    SitePoint Zealot Hulkur's Avatar
    Join Date
    Oct 2001
    Location
    Estonia
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe it's because there is ; missing in body style
    Code:
    font-size: 0.9em}
    (2B) or (not 2B) = FF

  8. #8
    SitePoint Evangelist ucahg's Avatar
    Join Date
    Apr 2001
    Location
    Sarnia, Ontario, Canada
    Posts
    434
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think the semicolon was necessary before a closing brace. Is it?

    Hmm, now I'm curious.
    Love it? Hate it? Helpful? Useless?
    Use the rate button to let me know what you think of my post!

  9. #9
    SitePoint Evangelist ktown's Avatar
    Join Date
    May 2001
    Location
    toronto
    Posts
    478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    actually now that you bring it up... i think it discards everything after i have this code

    Code:
    .contnt p, div, th, td, li, dd  {
       /* more specific to override rule in improrting sheet */
      font-size: x-small;
       /* false value for WinIE4/5 */
      voice-family: "\"}\";
      voice-family: inherit;
       /*recover from trick */
      font-size: small;
       /*intended value for better browsers*/
      }
    is that proper syntax?

  10. #10
    Old Folks 127.0.0.1 pacres's Avatar
    Join Date
    Sep 2003
    Location
    ed.ab.ca.na.ea
    Posts
    428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [qoute]I don't think the semicolon was necessary before a closing brace. Is it?[/quote]

    I don't think that it is necessary in the last statement inside the brace, but it is good practice to do so.

  11. #11
    SitePoint Evangelist ktown's Avatar
    Join Date
    May 2001
    Location
    toronto
    Posts
    478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump

  12. #12
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Is probably because of the erroneous 'voice-family:' hack using the right brace and back-slash }\ and
    Code:
     voice-family: "\"}\";
    it will halt the CSS parser comment out that voice family hack and the CSS should work again, or fix the illegel syntax for the hack.

  13. #13
    SitePoint Evangelist ktown's Avatar
    Join Date
    May 2001
    Location
    toronto
    Posts
    478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is there another hack for font-sizes?

  14. #14
    SitePoint Evangelist Daijoubu's Avatar
    Join Date
    Oct 2002
    Location
    Canada QC
    Posts
    454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What's the point of putting <!-- -->
    Older browser doesn't even support @import
    What about adding media="all" ?

    <style type="text/css" media="all">
    @import url(styles.css);
    </style>

  15. #15
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the <!-- --> is to prevent older browsers from showing all the text inside the style tags on the page.
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  16. #16
    SitePoint Member
    Join Date
    Oct 2003
    Location
    australia
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ucahg
    I don't think the semicolon was necessary before a closing brace. Is it?

    Hmm, now I'm curious.
    It doesn't matter W3C validator doesn't seem to mind.


    <!-- --> using that isn't even really valid anymore in 1996 it was, but it's rare to find a browser that still needs that in your stylesheet.

  17. #17
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Harker
    <!-- --> using that isn't even really valid anymore in 1996 it was, but it's rare to find a browser that still needs that in your stylesheet.
    Actually it's still valid in HTML 4.01 (Transitional and Strict) and XHTML 1.0 Transitional. It's not valid in XHTML 1.0 Strict or XHTML 1.1 (instead, you should be closing it in CDATA blocks).


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
  •