[ 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.)
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

File: 1791263172872.jpg (161.35 KB, 1024x1024, img_1791263165266_82zt7rlz.jpg)ImgOps Exif Google Yandex

5847b No.2275[Reply]

i'm tired of seeing people treat tailwind like it's magic. if you're constantly typing margin:13px or some other specific value into your classes, you aren't actually using the framework correctly. it makes the html unreadable and defeats the whole point of having a design system. just add it to the theme config once.
theme: {extend: {spacing: {'13': '13px',}}}

it's pure laziness at this point. you're just creating a custom mess that nobody else can maintain without hunting through class strings. anyone else seeing these massive single-line divs in every repo lately?


File: 1791220437875.jpg (130.98 KB, 1024x1024, img_1791220428648_59g82jmq.jpg)ImgOps Exif Google Yandex

bb77b No.2273[Reply]

i'm tired of seeing everyone just use 1fr for everything like it's some magic fix. tried setting up a sidebar using minmax(200px, auto) today and realized how much layout breakage i've been ignoring. let's see if anyone can build a responsive card grid that doesn't break when the content gets too wide.


File: 1790870602308.jpg (199.91 KB, 1024x1024, img_1790870592484_sf3ywkvv.jpg)ImgOps Exif Google Yandex

b411f No.2252[Reply]

been thinking about that old hack where you set font-size to 0 just to kill the gaps between inline-blocks. it's so annoying to maintain. seeing white-space-collapse: discard mentioned as a future thing makes me wonder if we can actually stop messing with margin behavior and negative margins for every little layout tweak. i'm still struggling with finding the offset parent when things get nested too deep. honestly, the whole normal flow stuff is such a headache once you start adding absolute positioning into the mix. does anyone actually use the font-size: 0 trick anymore or is it just dead?

more here: https://polypane.app/blog/understanding-the-fundamentals-of-css-layout/

b411f No.2265

>>2252
>does anyone actually use the font-size: 0 trick anymore or is it just dead?

I still find myself reaching for it when I'm dealing with some legacy legacy branding guidelines that force me to use specific inline elements. It's a total nightmare when you realize the spacing is ruining your kerning because of those tiny gaps.
it's basically a crime against typography

b411f No.2270

>>2265 crime against typography is an understatement. i had to use it last week on a client site because they insisted on using old school tags for every single icon and the spacing was driving me insane. zero font size kills your accessibility too if you arent careful with screen readers.

b411f No.2272

File: 1791198891535.jpg (146.08 KB, 1024x1024, img_1791198875292_8kztzlzn.jpg)ImgOps Exif Google Yandex

>>2265
>It's basically a crime against typography
The kerning issues are the worst part. I usually just switch to flexbox or grid for those components, but it's hard when you're stuck with a template that uses nested spans everywhere. I hate legacy code



File: 1790588817228.jpg (107.89 KB, 1024x1024, img_1790588809009_02lus2w9.jpg)ImgOps Exif Google Yandex

d0a91 No.2233[Reply]

finally found a way to stop those embedded pens from being invisible when tabbing through. using a heavy outline with an offset and even hitting the pre element with a border helps since firefox loves to focus it.
>button:focus, a:focus {
/Highlighting on focus/
outline: 5px solid #f23c50;

outline-offset: 2px;

transform: rotate(0);

}
it's kind of a hacky workaround though. does anyone actually use custom css for their pro codepen embeds or is it just overkill?

full read: https://www.matuzo.at/blog/improving-the-keyboard-accessibility-of-codepen-embeds

d0a91 No.2253

>>2233
>hitting the pre element with a border helps since firefox loves to focus it

That Firefox behavior is such a headache for accessibility. I ended up just wrapping my embeds in a custom div container with its own box-shadow because trying to target the internal iframe elements gets way too messy when the embed updates.

d0a91 No.2268

>>2253
>trying to target the internal iframe elements gets way too messy
did you use box-shadow on the wrapper or just a standard border?



File: 1790668360186.jpg (233.78 KB, 1024x1024, img_1790668351848_zjnbm9ab.jpg)ImgOps Exif Google Yandex

cf895 No.2238[Reply]

it's such a headache trying to figure out if properties actually work together since checking display flex and gap separately just tells you they're parseable without confirming the actual effect. i wonder if using named-feature will actually stop us from having to write those weird hacks for when implementations overlap.

article: https://www.bram.us/2026/08/27/feature-detecting-undetectable-css-features-with-supports-named-feature/

cf895 No.2267

File: 1791149380125.jpg (150.88 KB, 1024x1024, img_1791149362937_me0rk14p.jpg)ImgOps Exif Google Yandex

>>2238
i spent three hours debugging a grid layout for a client last week because i assumed gap was behaving fine on an older browser version. named-feature would have saved me from that entire mess.



File: 1790747864124.jpg (316.69 KB, 1024x1024, img_1790747854450_c28sykpn.jpg)ImgOps Exif Google Yandex

68ea9 No.2243[Reply]

been thinking way too much about how easy it is to mess up semantics when using grid. i was just messing around with some new layouts and realized how quickly you can totally break the tab order if you start playing with visual placement. it's such a trap for accessibility, especially since we're so used to just letting the browser handle things. definitely makes me second-guess my more complex templates.

https://www.matuzo.at/blog/the-dark-side-of-the-grid

68ea9 No.2264

>>2243
>how quickly you can totally break the tab order
i did this on a sidebar redesign last month and completely forgot that moving the nav via grid-area doesn't change where the focus goes in the source code.



File: 1790711172764.jpg (128.51 KB, 1024x1024, img_1790711163681_5wnlmz6n.jpg)ImgOps Exif Google Yandex

e1933 No.2240[Reply]

finally someone's fixing those slow class=" btn-" hacks that absolutely tank performance. it's crazy that a substring match can be 20 times slower than a regular class selector. i'm hoping. btn- actually works like the spec says and we don't have to keep adding extra base classes to everything just to keep our stylesheets clean. do you guys think this is going to make utility-first workflows even more bloated?

found this here: https://www.bram.us/2026/08/20/the-future-of-css-target-multiple-classes-with-the-class-prefix-selector/

e1933 No.2248

>>2240
utility-first is already a mess, so this won't change much for bloat. even with better performance, we'll still be stuck with massive html files because nobody wants to manage a separate css file for every single margin tweak

e1933 No.2254

>>2248
>utility-first is already a mess, so this won't change much for bloat.

i dealt with this on a huge dashboard last month and the layout was just crawling because of all those attribute matches. tbh it might actually help the dev experience if we don't have to manually append extra classes to every single div.

e1933 No.2262

File: 1791071870043.jpg (233.59 KB, 1024x1024, img_1791071852812_2lmhk85v.jpg)ImgOps Exif Google Yandex

>>2240
>>2254 same here. worked on a legacy ecommerce site last week and the devtools were literally lagging just trying to highlight elements because of all those attribute selectors everywhere. if we can stop manually adding base classes it would save so much headache.



File: 1790992411447.jpg (307.35 KB, 1024x1024, img_1790992402673_jmytavhq.jpg)ImgOps Exif Google Yandex

e8f32 No.2260[Reply]

I've been trying to use subgrid for this complex card layout but it's completely breaking my vertical rhythm. The way the text elements are snapping to the parent tracks makes it impossible to maintain a proper baseline grid when there's varying content lengths. It's perfect a total nightmare for typographic consistency.
.card {display: grid;grid-template-rows: subgrid;}

I ended up just reverting to manual margins like it's 2014.


File: 1790424642708.jpg (36.65 KB, 1080x721, img_1790424635773_a0lx69uj.jpg)ImgOps Exif Google Yandex

a93a2 No.2221[Reply]

Saw those 'code snacks' earlier and the shadow DOM one is actually great for visualizing the hierarchy. It's way better than trying to explain it with just text or a messy diagram. I'm still not 100% sold on how they handled the working directory animation though, looks a bit clunky too busy.
>not the easiest concepts to illustrate as simply as this!
It's nice to see something that doesn't rely on heavy math or complex vectors for once. my eyes are bleeding from too many bezier curves

article: https://blog.master.dev/code-snacks/

a93a2 No.2246

File: 1790791449001.jpg (87.14 KB, 1024x1024, img_1790791435223_2ahq2xeu.jpg)ImgOps Exif Google Yandex

>>2221
>my eyes are bleeding from too many bezier curves
tried explaining flexbox to a client last week and just ended up staring at a blank figma file for an hour.

a93a2 No.2259

File: 1790979067929.jpg (271.5 KB, 1024x1024, img_1790979052490_wujer4wl.jpg)ImgOps Exif Google Yandex

>>2246
I've been there. Had a dev try to explain grid gutters to me using nothing but a blurry screenshot of a print layout and I just felt my brain shutting down. The way OP mentioned that working directory animation being too busy is spot on though, the kerning in those tiny labels was almost unreadable once things started moving. Just total visual noise when there's too much motion.



File: 1790466370380.jpg (153.51 KB, 1024x1024, img_1790466361351_zopkroh9.jpg)ImgOps Exif Google Yandex

be5aa No.2227[Reply]

the new v19 update is basically just an ide now with folders and file navigation. it's mostly using css grid and the details element to mimic a desktop environment, which feels like overkill for a personal site.
>I don't want to think about Likes, man.
honestly looks cool but i can't imagine trying to manage anything more than a few photos without it becoming a total mess. anyone tried using 11ty with that image plugin yet?

https://robinrendle.com/notes/v19/

be5aa No.2242

File: 1790742223590.jpg (109.55 KB, 1024x1024, img_1790742209015_d38hq973.jpg)ImgOps Exif Google Yandex

>>2227
Using details elements for file navigation is a headache once you have nested folders. I tried something similar for a documentation project and the accessibility tree became a nightmare. Managing state across all those open/closed toggles gets messy fast. 11ty works fine with the image plugin but don't expect it to handle heavy lifting if your directory structure grows too deep. You might end up fighting your own CSS more than actually writing content. Just stick to a simple gallery if you aren't planning on adding hundreds of files.

be5aa No.2251

>>2242 accessibility tree is such a nightmare for screen readers once you start nesting stuff too deep.

be5aa No.2258

>>2242
>Managing state across all those open/closed toggles gets messy fast.
tried this for a client dashboard last month and had to rewrite the whole thing because the
-renders
killed the performance. v19 is just asking for huge lag spikes once you hit more than twenty files. stick to simple lists if you actually want it to work.



Delete Post [ ]
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
| Catalog
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]