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 6894367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:46:25+00:00 2026-05-27T06:46:25+00:00

I have an html web design made by someone else; they have used @import

  • 0

I have an html web design made by someone else; they have used @import inside the css files. I will for several reasons (primarily: http://www.stevesouders.com/blog/2009/04/09/dont-use-import/) to remove the @import inside the css files and instead include directly it in the html page with: <link rel="stylesheet"… >

My question is now: what will be the correct way to include the files via link to maintain the current rule validation sequence

Current @import sequence, eg.:

a.css
  @import b.css

b.css
  @import c.css
  @import d.css

Will the correct link order be:

a.css
b.css
c.css
d.css

or is it something like:

c.css
d.css
b.css
a.css

or???

Each file contains, besides one or more import tags also own css rules.

For the record: it is not an option for me to gather all the files in one file – the different css files are used I different context alone and/or together

  • 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-27T06:46:26+00:00Added an answer on May 27, 2026 at 6:46 am

    An @import rule includes all stylerules as if they were on that position. Example (default.css):

    @import "first.css";
    @import "second.css";
    @import "third.css";
    
    body {
       color: #333333;
    }
    

    In this order, all css rules of first.css will be applied first, then the second.css, then the third.css. So if you want to remove the inclusion, just follow the import links and add them in this order in your html head section:

    <head>
      <title>Whatever</title>
      <link href="first.css" rel="stylesheet" type="text/css">
      <link href="second.css" rel="stylesheet" type="text/css">
      <link href="third.css" rel="stylesheet" type="text/css">
      <link href="default.css" rel="stylesheet" type="text/css">
    </head>
    

    So, in your case it will be:

    c.css
    d.css
    b.css
    a.css
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say i have a .html file that contains a web design and has variables
Say I have several .otf and .dfont font files that are used in PSD
I have a plain html web page with an embedded flash object. Based on
I have an HTML page with a web form. Among other things, it includes
On extracting some html from a web page, I have some elements containing text
I have a web application with bunch of HTML code. There are some style-attributes
I have created web pages where am using pixel to position various html elements.
I have a web application where the masterPage/template contains some static HTML that never
I have downloaded the web page into an html file. I am wondering what's
I have a web application written in pure JavaScript (no pre-generated HTML except for

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.