SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: Whole site in CSS
-
Jan 9, 2003, 13:26 #1
- 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";
PHP Code:<style type="text/css">
@import "all.css";
-
Jan 9, 2003, 13:42 #2
- 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.
-
Jan 10, 2003, 13:23 #3
- Join Date
- Jan 2003
- Location
- Netherlands
- Posts
- 115
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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..
CheersWisbin 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
..
-
Jan 12, 2003, 18:48 #4
- 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">
-
Jan 13, 2003, 03:22 #5
- 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