Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6

Thread: CSS methodology

  1. #1
    Senior Member jbagley's Avatar
    Join Date
    Sep 2004
    Location
    Cape Town
    Posts
    845
    Member #
    7422
    on the home page:
    HTML Code:
    <link rel="stylesheet" type="text/css" href="simple.css" />
    This is the simple.css file:
    HTML Code:
    @import "advanced.css";
    
    /* IE5/Win Only Styles
       Uses the Mid Pass Filter:
       http://tantek.com/CSS/Examples/midpass.html
    ----------------------------------------------- */
    @media tty {
     i{content:"\";/*" "*/}} @import 'ie5win.css'; /*";}
    }/* */
    Why would someone employ this method of importing multiple css files? Ive seen it on a couple of sites, and I wonder why its done this way. any clues why?

  2.  

  3. #2
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    @import makes it so NN4 cannot see your stylesheet, and since it's guarenteed not to work there... well, yeah. But that was then, and this is now. People use @import to make life easier - you can apply pass filters to import specific CSS' for different browsers - keeping your hacks away from your main CSS file.
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  4. #3
    Senior Member jbagley's Avatar
    Join Date
    Sep 2004
    Location
    Cape Town
    Posts
    845
    Member #
    7422
    Ok ,I see why. I also saw you use the @import command at drumreport. So its litteraly to keep Nestcape 4 from seeing your site and to use hacks like the one used above - "@import 'ie5win.css'"

  5. #4
    Senior Member jbagley's Avatar
    Join Date
    Sep 2004
    Location
    Cape Town
    Posts
    845
    Member #
    7422
    Brak, in the <style> tag, what is the 'media' attribute for?

  6. #5
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,663
    Member #
    1234
    Liked
    141 times
    You can have different attributes related to the media tag. For instance, there's a print media tag. Certain attributes would be used when printing.
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  7. #6
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    I just use @import due to habit, honestly - I could care less about NN4 at all. It was soemthing I read back in the day (so NN4 gets an unstyled version instead of a hacked-styled version) and always stuck to. But seriously, who cares about NN4?
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:13 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com