Comments on: Is There Too Much CSS Now? https://css-tricks.com/is-there-too-much-css-now/ Tips, Tricks, and Techniques on using Cascading Style Sheets. Mon, 07 Nov 2022 16:53:26 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Steve Johnson https://css-tricks.com/is-there-too-much-css-now/#comment-1797672 Mon, 07 Nov 2022 16:53:26 +0000 https://css-tricks.com/?p=374364#comment-1797672 @Moaz, you are correct not only is CSS becoming more advanced but an overwhelming amount of CSS is included in many websites. After some research, you can see that CSS tends to drift during development, and styles and properties become useless and abandoned. I did find an article that was kinda interesting on removing dead code: https://appcode.app/how-to-remove-unused-css/

You are right, there should be some development in making CSS easier to work with.

]]>
By: MOAZ https://css-tricks.com/is-there-too-much-css-now/#comment-1797670 Mon, 07 Nov 2022 09:37:38 +0000 https://css-tricks.com/?p=374364#comment-1797670 more knowledge we have about CSS its hard to catchup

]]>
By: The Scribe https://css-tricks.com/is-there-too-much-css-now/#comment-1797640 Fri, 04 Nov 2022 13:22:26 +0000 https://css-tricks.com/?p=374364#comment-1797640 While I partially agree (tab carousels and such are a bit too generalized), I disagree with your statement that CSS has become “too complex.”

CSS is the primary means by which programmers style websites. Because of the sheer diversity of ways in which people might want to style elements, the diversity of CSS features is arguably necessary.

I like how CSS manages complexity: dividing properties (roughly) into two classes. On the one hand, you have “Common CSS” (a term I’m making up). This is the manageably small set of features which everybody uses every day, such as margin and font-size. Nowadays, you could also include border-radius and box-shadow due to their prevalence in modern aesthetic styles. On the other hand, you also have “Advanced CSS”, a huge set of specialized features which are rarely used but are nevertheless extremely valuable whenever you need to do whatever it is they handle (a good example is the linear() easing function you mentioned). You do not need to know Advanced CSS by heart in order to write good CSS; it is sufficient to know Common CSS and be able to search the MDN docs for Advanced CSS features.

]]>
By: Tim https://css-tricks.com/is-there-too-much-css-now/#comment-1797632 Thu, 03 Nov 2022 23:00:12 +0000 https://css-tricks.com/?p=374364#comment-1797632 Is there any mechanism by which to deprecate or remove obsolete CSS features? Surely they can’t all be the current expected way to approach the problem of layout and styling.

We’ve had to move to “evergreen” browsers for HTML updates. Might as well take advantage of that to simplify CSS.

Even if it’ll be years until we can actually clean up the spec with a CSS 3000, and we can only mark features as “legacy” support, being able to define a reasonable, modern, usable subset would be a great step forward.

]]>
By: juan https://css-tricks.com/is-there-too-much-css-now/#comment-1797620 Wed, 02 Nov 2022 04:48:14 +0000 https://css-tricks.com/?p=374364#comment-1797620 so people are complaining about too much css, but isn’t bothered that a new js framework keeps popping out every day?

]]>
By: Bartek https://css-tricks.com/is-there-too-much-css-now/#comment-1797596 Sat, 29 Oct 2022 06:15:52 +0000 https://css-tricks.com/?p=374364#comment-1797596 CSS features are here to give as much flexibility as possible to design exactly what designer imagine. It’s great how it’s developing.

If someone feels CSS has too much features it means it’s not for them.

Maybe jobs will divide again into more specialized.

]]>
By: Rob Schlüter https://css-tricks.com/is-there-too-much-css-now/#comment-1797552 Wed, 26 Oct 2022 19:37:05 +0000 https://css-tricks.com/?p=374364#comment-1797552 For me, CSS has turned from easy and useful to frustrating. I don’t do CSS development all day, it’s just one of the technologies I sometimes have to use. At this point it seems no longer a language for humans.

There should be way better visual editors to develop screen (reader) elements, their definition, layout, transitions etc., and produce the actual CSS that will go into production. Get rid of the separation between design and develop, we’re all in the same team.

]]>
By: Berend Vervelde https://css-tricks.com/is-there-too-much-css-now/#comment-1797550 Wed, 26 Oct 2022 14:13:20 +0000 https://css-tricks.com/?p=374364#comment-1797550 W3C currently shows 559 distinct property names so apparently 11 properties have been added since october 5th!

]]>
By: Fabian https://css-tricks.com/is-there-too-much-css-now/#comment-1797547 Wed, 26 Oct 2022 10:26:02 +0000 https://css-tricks.com/?p=374364#comment-1797547 I’ve been a web developer back when we had to use 9 images and a table for getting a box with rounded corners and a background texture. Yes, a lot of the newer features are incredibly useful!

An I really got the feeling, that the W3C, WHATWEG and browser vendors are much more focused on designing and implementing features that people actually need in order to do their daily job. Using floats for a multi-column-layout was fine back then, but using flexbox and grid just feels so much nicer than having to understand what a clearfix is.

Nowadays, we need way less strange hacks to accomplish what we need, which should make code easier to read. But now, that we got so many great features at hand, the fine-grained control over every aspect of a design often results in things 100 lines of CSS for a button and many levels of abstraction with custom properties.

On top of that, there are many properties of questionable use like will-change, contain or contain-intrinsic-size. Of course, these are a welcome addition for complex apps, but many devs are feeling the pressure of using these in rather simple projects as well, adding unnecessary complexity with little gains.

For me, there’s too much CSS to learn all of it in detail now, but on the other hand: maybe it is also not needed any longer to learn all of it.

]]>
By: three_underscores https://css-tricks.com/is-there-too-much-css-now/#comment-1797545 Wed, 26 Oct 2022 04:00:15 +0000 https://css-tricks.com/?p=374364#comment-1797545 In reply to Neil.

Natural languages are not declarative languages. CSS risks becoming C++, you can do 1 thing in 10 ways which is bad and in an ecosystem of frameworks and libraries further splits the community. On natural languages, the world too is split up by language too many ways to say bread.l

]]>
By: CM30 https://css-tricks.com/is-there-too-much-css-now/#comment-1797540 Tue, 25 Oct 2022 18:10:52 +0000 https://css-tricks.com/?p=374364#comment-1797540 Not really. The amazing thing about all the extra CSS features (and hell, those in JavaScript too) is that they increase the number of things you’re able to make, giving you far more possibilities for interesting sites and apps.

So while I might not use certain features now, others might well find interesting uses for them in future. And probably create all kinds of stuff I’d never have imagined as a result.

]]>
By: Neil https://css-tricks.com/is-there-too-much-css-now/#comment-1797538 Tue, 25 Oct 2022 15:37:38 +0000 https://css-tricks.com/?p=374364#comment-1797538 Consider that there are more than a million words in the English language, of which about 170,000 words are in current use, and 20,000-30,000 words are used by each individual person.

Do we stop adding new words that are relevant today, or throw out the 830,000 words that are not currently in use?

I would suggest this is similar to your query about there being too much CSS.

]]>
By: x2i https://css-tricks.com/is-there-too-much-css-now/#comment-1797534 Tue, 25 Oct 2022 09:04:38 +0000 https://css-tricks.com/?p=374364#comment-1797534 I would rather have 100 new features that people didn’t necessarily get excited about than just a couple which people were excited for.

So long as those 100 made making websites look and behave how I want them to a lot easier. It should be about practicality not excitement.

]]>
By: James Harding https://css-tricks.com/is-there-too-much-css-now/#comment-1797530 Tue, 25 Oct 2022 07:34:51 +0000 https://css-tricks.com/?p=374364#comment-1797530 I’m one of the new developers you’re talking about (c. 1 year self-taught) and here to testify that vanilla CSS is pretty easy to learn from scratch and doesn’t feel overwhelming at all. I know everything I use regularly (including grid/flex) and look up the rest on MDN or on here as it comes in handy; so not all that different really from using a large-scale API, except CSS has very good documentation ;-)

If I ran a browser I would certainly be focusing on devex. The more web apps there are as opposed to native ones, the more power and intel the browsers can gather. (I guess we’re in trouble if they start injecting ads…)

]]>
By: Jon https://css-tricks.com/is-there-too-much-css-now/#comment-1797529 Mon, 24 Oct 2022 20:03:08 +0000 https://css-tricks.com/?p=374364#comment-1797529 Was there ever an expectation that a developer should have the entire CSS spec in their head?

The people that care about a11y are proactive in adding features that make a11y easier to implement.

The people that request the web to freeze in place for the sake of a11y are just stagnating.

]]>