|
|||||||
| CSS Discussion and technical support relating to Cascading Style Sheets. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
external CSS: @import
I'm working on my change from HTML 4.01 Transitional to Strict. Notice somewhere that using @import, apparently, rather than what I have now:
Code:
<link rel="stylesheet" href="cwstrict.css" type="text/css"> Tue, 01 Feb 2005 18:34:57 |
|
#2
|
||||
|
||||
|
Instead of the link you set up for an embedded style sheet then use the @import inside of that. The strategy is to only put "old browser" styles in the linked sheet then @import the "advanced" styles.
__________________
Help Save Ana Why use Web Standards: Zeldman How (new): Castro How (experienced): Cederholm If you can only get one book and you're already HTML savvy then this is it: stylin' with CSS: A Designer's Guide Charles Wyke-Smith New Riders "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan |
|
#3
|
|||
|
|||
|
Hello Carol,
Here is the statement you asked for : <STYLE TYPE="text/css"> @import url("http://www.yourwebsite.com/screen.css") screen; @import url("http://www.yourwebsite.com/print.css") print; </STYLE> The 'screen' or 'print' definitions are optional. 'screen' sets styles on a monitor, 'print' sets styles for a printed page (usualy for a printer-friendly page). Greetz from The Netherlands! Jascha. |
|
#4
|
||||
|
||||
|
Quote:
Thanks a lot, Ray! Tue, 01 Feb 2005 20:22:07 |
|
#5
|
||||
|
||||
|
Quote:
Tue, 01 Feb 2005 20:24:55 |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|