Results 1 to 4 of 4

Thread: hide css from save as

  1. #1
    Join Date
    Nov 2005
    Location
    Austin TX,US
    Posts
    71
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default hide css from save as

    When I use save as on a web page, sometimes the folder includes everything - css, js... and the page is displayed offline exactly the same as I view it online.
    But sometimes it's not the case. Why?

    Is there a way to hide all those .css, .js... so that these files can't be included in the save as folder?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Different browsers handle it differently and different ways of including css/js do it differently as well, such as putting them in the source, using external files, or using the css #include (css file) method.

    You could look into it and find a way that, by default, at least in some browsers, the external css/js files are not saved with the page, but it is very possible (impossible to stop) the saving of those files if the user wishes to save them.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Code:
    <style type="text/css">
    
    @import url(style.css);
    
    </style>

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Ah. @import? That's what I meant with "#include".... oops.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •