www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > CSS

    CSS Discussion and technical support relating to Cascading Style Sheets.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 02-01-2005, 09:36 PM
    CarolW's Avatar
    CarolW CarolW is offline
    Granny Molehill2Mountain
     
    Join Date: Nov 2004
    Location: Canada
    Posts: 330
    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">
    takes care of difficulties with Netscape 4. So should I change from the illustrated form to @import? If so, how do I make such a statement? I have a feeling I should have found it somewhere easily, but as such a babe in the woods, I'm lost, so I apologize for the question, but ask it anyway <g>.

    Tue, 01 Feb 2005 18:34:57
    __________________
    My site is my home-and-playground
    http://www.coherentdog.org/
    Carol W
    Reply With Quote
      #2  
    Old 02-01-2005, 10:59 PM
    ray326's Avatar
    ray326 ray326 is offline
    Got Link?
     
    Join Date: Nov 2003
    Location: Jerryville, Tejas
    Posts: 11,741
    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
    Reply With Quote
      #3  
    Old 02-01-2005, 11:06 PM
    ChiP_1976 ChiP_1976 is offline
    Registered User
     
    Join Date: Feb 2005
    Location: Almelo (NL)
    Posts: 1
    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.
    Reply With Quote
      #4  
    Old 02-01-2005, 11:22 PM
    CarolW's Avatar
    CarolW CarolW is offline
    Granny Molehill2Mountain
     
    Join Date: Nov 2004
    Location: Canada
    Posts: 330
    Quote:
    Originally posted by ray326
    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.
    Hw interesting! I'll have to study up on that to discover quite what you mean, Ray, but I begin to get the idea, and now at least have numbers of resources from which to study; so many are mentioned here. My Bookmarks list is getting very, very long, haha!

    Thanks a lot, Ray!

    Tue, 01 Feb 2005 20:22:07
    __________________
    My site is my home-and-playground
    http://www.coherentdog.org/
    Carol W
    Reply With Quote
      #5  
    Old 02-01-2005, 11:25 PM
    CarolW's Avatar
    CarolW CarolW is offline
    Granny Molehill2Mountain
     
    Join Date: Nov 2004
    Location: Canada
    Posts: 330
    Quote:
    Originally posted by ChiP_1976
    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.
    ChiP, how nice of you to make your first post here a helpful reply to my request for information! Your explanation is helpful too; thanks a lot! And welcome to the forums. I'm not a programmer at all, so it's hard for me, but have been getting wonderful help here! To which you've now contributed. I'm very grateful. And greetings back to you!

    Tue, 01 Feb 2005 20:24:55
    __________________
    My site is my home-and-playground
    http://www.coherentdog.org/
    Carol W
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 10:06 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.