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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:50:57+00:00 2026-05-15T15:50:57+00:00

I am using ASP.NET MVC to develop a site. The CSS file has grown

  • 0

I am using ASP.NET MVC to develop a site. The CSS file has grown to 88KB and is having a little more 5,000 lines. I noticed recently that styles added at the end are not there in the browser. Is there any size limit on CSS file or on the number of lines?

EDIT:
Sorry I forgot to mention that this problem is occurring in Windows 7 both in FireFox and IE8.

  • 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-15T15:50:58+00:00Added an answer on May 15, 2026 at 3:50 pm

    I think that if you are having problems with the size of your css files then it is time to rethink your styling strategy. The C in CSS stands for cascading. Quite often when CSS files get too big it is due to styles not being re-used where appropriate and through poor use of the cascading behaviour.

    I don’t say this lightly. I have worked on some large, complex retail sites and currently on very complicated financial trading applications. Whenever I have come accross sites with more than a few hundred styles, we have achieved large improvements in design, reductions in complexity and improvement of maintainability by reducing css complexity.

    One place to start is doing a Google sesarch on css reset. There are multiple different implementations, but they generally follow the theme of overriding the differences in layout for each of the browsers and removing arbitrary borders, margins and padding etc. Starting with a clean slate, if you will. Then you can go ahead and build up your styles from there, being careful to make the most of cascading and css chaining

    Chaining is where you have more than one class on an element. eg:

    <div class="box right small"></div>  
    

    box might have some general styles that you might like to apply to many block elements such as div, h1…h6, p, ul, li, table, blockquote, pre, form. small is self explanatory right might simply be aligned to the right, but with a right padding of 4px. Whatever. The point is that you can have multiple classes per element and build up the styling from reusable building blocks – groupings of individual style settings. Otherwise known as classes.

    On a very simple level, look for oportunities to combine styles:

    so:

    h1 {font-family: tahoma, color:#333333; font-size:1.4em;}  
    h2 {font-family: tahoma, color:#333333; font-size:1.2em;}  
    h3 {font-family: tahoma, color:#333333; font-size:1.0em;}  
    

    becomes

    h1, h2, h3 {font-family: tahoma, color: #333}  
    h1 {font-size:1.4em;}  
    h2 {font-size:1.2em;}  
    h3 {font-size:1.0em;}  
    

    Only, slightly smaller, but do this kind of thing lots of times and you can make a difference.

    Also, Validate your css. This will help you spot errors in your code.

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

Sidebar

Related Questions

I'm using ASP.NET MVC to develop a website and I need to customize my
I'm using ASP.NET MVC to develop a web application, deploying to IIS 7. I've
Using ASP.Net MVC on my Site.Master I have: <head runat=server> <title><asp:ContentPlaceHolder ID=TitleContent runat=server />
Hey guys! I'm using ASP.NET MVC to develop an application for a library with
Hai guys, As i want to develop an application using asp.net MVC, i dont
I have been learning to develop websites using ASP.NET MVC 2 for work... and
I am using asp.net MVC to develop an application that will have ajax interactions.
I am using ASP.NET MVC to develop an application framework. Essentially, the end goal
I´m using internet explorer 8 and asp.net mvc 3 to develop my web application.
I am using ASP.NET MVC to develop a web application and would like to

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.