5 ms·
5000 lines of CSS? You really need to re look at how you have used CSS. I can not imagine any web application needing that many lines of CSS.
by solutionyogi 17y ago
5000 lines of CSS? You really need to re look at how you have used CSS. I can not imagine any web application needing that many lines of CSS.
- dasil003 17y agoActually I know amazingly well what I'm doing with CSS. I've been wrangling CSS since IE4/NS4. The reason we have so much CSS is because the site was not originally designed by a web designer. It was designed page by page by a graphic designer. We have 125 controllers and over 300 templates, plus several dozen static pages. Many of these pages have custom layouts and typography. The reason we have 5000 lines of well-organized CSS instead of 10000 lines of poorly-organized CSS is thanks to some heavy refactoring that we have done after most of the pages had been built. Don't underestimate the cost of building a unique brand. We can't all get by on 37signals style.
- wmeredith 17y ago"Don't underestimate the cost of building a unique brand. We can't all get by on 37signals style." WTH does this mean in this context? Not being snarky; I can't figure it out for the life of me.
- dasil003 17y agoIf I was building the site from scratch I would build it in such a way to minimize markup as CSS. I would probably do minimal Photoshop mockups and iterate rapidly in HTML/CSS, and the design would be very much driven by efficiency of the markup and CSS. However in our case we had a graphic designer who had never done anything on the web before. This may seem like an insane way to design a web product, but the result is that we ended up with a brand that was entirely unique on the web, and this gave us a real tangible benefit when it came to attracting our initial userbase and business partnerships. In the end the same functionality could have been built and reasonably well styled with 1000 lines of CSS, but we purposefully chose to go the longer route for branding purposes.
- bkbleikamp 17y agoI work on a giant Rails site that has over well over 5,000 lines of CSS – when you are working on custom promotions, dozens of dynamic pages, and accounting for user generated content the CSS files get long.