SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot ThaLIkz's Avatar
    Join Date
    Jan 2002
    Location
    Drenthe, The Netherlands
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Whole site in CSS

    I'm using this layout for my new site that i'm building in css, im pretty much done with modyfing(?) it but i have a question :

    What does this line mean??

    PHP Code:
    @import "all.css"
    From this piece of code

    PHP Code:
    <style type="text/css">
        @
    import "all.css"

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It is importing a secondary CSS file. Often times this is done to separate more advanced CSS so that older browsers don't fumble and/or crash on the code. You could also use the import directive to import different CSS files based on the users viewing device so a Screen Reader which is Aural would get a different CSS file than a Web Browser which is Visual.
    Wayne Luke
    ------------


  3. #3
    SitePoint Zealot wisbin's Avatar
    Join Date
    Jan 2003
    Location
    Netherlands
    Posts
    115
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up link link

    idd...

    .. you can link css files, which will load after eachother. The older browsers ignor this command, BUT thats their problem

    I presume standard browsers and use it to seperate my different stylesheets for a website. When you are building tableless sites (all CSS for layouting) this @import lets you seperate layout and style.

    I load the main.css first, where I specify the layout-stuff, the DIV's (containers) and their properties. In that CSS I use standard naming, so I can reuse them for another project. Anyway, in this CSS-file the first line is a "link" to the other CSS-file and loads it: @import "classesSection01"; (specific css for section01) .. etc..

    I think it is a good idea..

    Cheers
    Wisbin from ict-id.nl

    Every day I see your face I wish that I'd stayed
    Don't even know what made me run away
    It's just the way I play the game
    ..


  4. #4
    SitePoint Member
    Join Date
    Oct 2002
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use

    Code:
    <link rel="StyleSheet" href="template.css" type="text/css">

  5. #5
    SitePoint Zealot ThaLIkz's Avatar
    Join Date
    Jan 2002
    Location
    Drenthe, The Netherlands
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, thnks for the reply's, i think i get it now. If i have any problems i'll let you know


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
  •