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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:56:29+00:00 2026-06-05T17:56:29+00:00

Possible Duplicate: How to Manage CSS Explosion I intended to build my web site

  • 0

Possible Duplicate:
How to Manage CSS Explosion

I intended to build my web site with consistent styles and a coherent CSS scheme. But styles have crept out of control as I fine-tune individual pages (especially the main search form).

I’ve already gone through the process one time of breaking down the styles and rebuilding almost from scratch, and now it looks like time to do that again. How can I be efficient about this? I’m looking for a methodology, not a software utility (though I’m open to suggestions there…unless they cost money…).

Added note: I’m using a CSS framework and it’s difficult to keep padding and margin coordinated.

Added note 2: The initial responses to this post are about best practices for CSS. Let’s assume I already tried to follow best practices (in fact, I did). Now it’s the clean-up procedure I’m looking for.

Added note 3: As of 14 June, combining this response (which I just found) with my post below is possibly a comprehensive answer.

Closure notes:

I learned my question is too general, and for that reason I wish I hadn’t posted it. (Maybe that’s why it got a down-vote … I’ll never know without a comment to explain the reason.) On the other hand I got just what I needed, so I’m happy I did post it.

I’m surprised I didn’t get an up-vote for my answer — even with the priceless input by others, I think it stands up pretty well.

My acceptance is going to be based largely on the usability of the answer, from my point of view — a point of view that is sadly unable to digest some of the more exciting and comprehensive responses.

Closed as an Exact Duplicate

I just tried posting this again (subject, body, tags) to see if SO would suggest the post “How to Manage CSS Explosion”. Interestingly, it did not. I added the tag refactoring to that post.

  • 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-05T17:56:31+00:00Added an answer on June 5, 2026 at 5:56 pm

    Split your css into separate files.

    1. Put in one file the CSS reset (if you use one)
    2. Then create a global.css file where you will put global styles that
      apply to many-all pages
    3. Then create individual files for your individual pages

    Then start styling your pages. Every time you find a style rule that is reusable on many pages make it a CSS class and put it in the global.css file. Avoid using css ID’s. You will find that you more often reuse things or will reuse in the future. In this case you use of course CSS classes.

    Eventually you will find out that in your global.css you will find mostly CSS classes rules and html tag rules.

    In your individual page CSS files you will find specific styles for each page.

    That should give you a good first level of organization in your CSS. You can try to keep this separation through the whole development process, and for releases merge the CSS files into one and minify it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Can .NET intercept and change css files? I have configured IIS6 to
Possible Duplicate: Change color of selection How does this site manage to make text
Possible Duplicate: How to manage your remote desktop Now that I'm building a site
Possible Duplicate: Checking for an SQL result in VB.NET I have login form which
Possible Duplicate: Browser Independence issue Code Working for IE but not for Firefox and
Possible Duplicate: C/C++ line number Hi, I have a simple error manager class that
Possible Duplicate: How to automatically start your service after install? I have a Visual
Possible Duplicate: Hide PHP from user How do other sites manage to write their
Possible Duplicate: Schedule Controls for ASP.Net MVC I have MVC3 in which I want
Possible Duplicate: How to reload a page using Javascript? I have the Facebook login

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.