[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1775579733556.jpg (205.51 KB, 1080x721, img_1775579725842_qs15n0le.jpg)ImgOps Exif Google Yandex

c441c No.1423

i found this neat way to style components using semantic names instead of generic classes like "container" or "button". check out how it works in a simple example:
<section class="profile-form"> <form>. </fieldset.


this approach makes your html more meaningful and easier for others (or future you) to understand. what do u think abt using semantic names over generic ones? have y'all tried this method b4, or is it still a bit too experimental in 2026?

➡️ want to see an actual component i made recently?
profile-form {display: flex;flex-direction: column;input[type="text"] {. }textarea {}button. save-profile {}}


i'm curious how others are structuring their css for components. any tips or tricks?

more here: https://dev.to/moopet/component-based-css-4ic4

c441c No.1424

File: 1775579844822.jpg (188.33 KB, 1880x1250, img_1775579831573_auc7tzuj.jpg)ImgOps Exif Google Yandex

component-based css is all abt keeping things modular and clean if u r new to it, try starting with simple reusable classes first before diving into full-fledged component libraries like lit-element ⚡ once you get comfy there's a whole world of custom elements awaitin' ya!



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">