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

  • SEARCH
  • Home
  • 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 8242159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:04:24+00:00 2026-06-07T21:04:24+00:00

I have two CSS files, let’s call them style1.css and style2.css for simplicity’s sake.

  • 0

I have two CSS files, let’s call them style1.css and style2.css for simplicity’s sake.

I include them in this order:

<link rel="stylesheet" type="text/css" href="style1.css" />
<link rel="stylesheet" type="text/css" href="style2.css" />

Style one is a more general file with lots of classes and attributes. Style2 overwrites these.

For example, style1 has this:

.row-fluid > .span9 {
width: 74.358974359%;
}

Whereas, style2 has:

.span9{
  width:50%;
}

I have some .row-fluid DIVs that contain .span9 elements and the first style is used for them, even though browsers should accept only the last CSS rule if duplicate selectors are found.

I discover this by going to Chrome Developer Tools and I see the span9 definition coming from style9 as crossed and the definition from style1 is at the top and is used instead.

PS: To be specific, style1 is the Twitter Bootstrap CSS and style2 is my own CSS started from scratch.

  • 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-06-07T21:04:26+00:00Added an answer on June 7, 2026 at 9:04 pm

    You’re understanding the cascading part, but perhaps not the specificity rules of CSS. The first rule more specifically selects the element than the second rule, so it is chosen instead.

    Try changing that second rule to this:

    .row-fluid > .span9 {
        width: 50%;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have two files containing styles, a.css and b.css. I import them into
I have two CSS files, pic off the problem: this pick shows no caps
If I have two css files: File 1: .colorme { background-color:Red; } File 2:
I have two CSS files in my web app: reset.css and screen.css. They appear
I have two CSS files where most of the whitespace have been removed. I
I have recently upgraded to ASP.NET AJAX application. I have two css files in
I have two sets of identical html and css files. One of which I'm
When loading two CSS files via an include I am only seeing one of
I have two Flash files: pre-loader and application. Pre-loader: (D:\Projects\FlashApps\dd\edd.fla) is doing basically this:
I would like to have two .css files. One for each master\content page 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.