|
| |
|
|
lilblackgirl
Posts: 288 Joined: 5/16/2002 From: Status: offline
|
Difference between <link> and @import - 3/24/2004 13:49:36
What's the difference and why would i use one over the other? And i've gotten pretty noisy around here lately, so i'll keep my yap shut for a while.
< Message edited by lilblackgirl -- 3/24/2004 13:18:42 >
|
|
|
|
d a v e
Posts: 4177 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Difference between <link> and @import - 3/24/2004 14:58:10
another useful thing about import is using it to append styles to a global style sheet for examaple if you have a university website all departments sharing a global style sheet for the look of all the pages, but the departments that are in the student services want a modified look (say they want all their headings in blue and not green like the rest of the uni, but body text and all the other stlyes to be the same) then you can import 2 stylesheets, the main uni one first and then the second one right after conatinaing the styles that are different @import url("UniMain.css"); @import url(".studentservices.css") heading one is green (default uni style)in the first style sheet and blue (student services style) in the second, and because of the cascade the second rule for H1 wins out and the headings are blue obviously you ONLY import BOTH sheets into the student services pages, the other uni pages have just the first sheet )
< Message edited by d a v e -- 3/25/2004 3:02:27 >
_____________________________
David Prescott Gekko web design
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|