Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1018673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:53:36+00:00 2026-05-16T10:53:36+00:00

I have about 100 stylesheets that apply the same style to one document, exactly

  • 0

I have about 100 stylesheets that apply the same style to one document, exactly like the zen css page, and I can list these files 1 by 1 in head but they are all in the same folder so it seems like there is an easier way. And that is…?

I’m using this with ruby, but I would rather just list a folder.

<% Highlight.all.each do |hl| %>
    <%= stylesheet_link_tag "css/#{hl.name}" %>
<% end %> 

looking at zen garden this is their source


Added after some answers were posted

Here is one file

<style type="text/css" title="currentStyle" media="screen">
@import "/205/205.css";</style>

Here is a second css style

<style type="text/css" title="currentStyle" media="screen">
    @import "/001/001.css";
</style>

What is the @import? What does this do/mean?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T10:53:37+00:00Added an answer on May 16, 2026 at 10:53 am

    There isn’t anyway to automatically download an entire folder (or all files contained within a directory’s tree) with CSS, HTML, or JS (although it would be possible with JS + a server side script).

    The best solution I’ve found is writing a shell script to package up all the CSS / JS files used in a project into a single file. Not only will this improve page load time on the production site but it allows you to easily compress the code.

    Here a couple links to help you out:

    • Bundling script that has a dev / production flag
    • CSS Optimizer
    • Javascript Optimizer
    • Apache script to optionally serve statically compressed css / js files
    • Another Apache script to handle css / js (along with images and other static content) caching
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At my workplace we have one large Subversion repository which holds about 100 projects.
So I have about 10 short css files that I use with mvc app.
On a page that I'm designing I have a form with one input of
I have about 100 databases (all the same structure, just on different servers) with
Ok so say I have 100 rows to insert and each row has about
I have about 200 Excel files that are in standard Excel 2003 format. I
I have about 10million values that I need to put in some type of
I have a Server 2003 box with about 6 sites that each have about
I have about 100 sites built in a cms, each with its own database.
I have about 100 posts in wordpress, all with a meta_key of price and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.