[ 🏠 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: 1784285046256.jpg (135.85 KB, 1024x1024, img_1784285006115_fmvq3d1y.jpg)ImgOps Exif Google Yandex

fb2c9 No.1891[Reply]

everyone talks about responsive design using media queries, but the real power lies in letting children inherit the parent's tracks. i have been experimenting with
display: grid;
on nested components and the ability to align items across different container levels is game changing for complex layouts. we should stop relying on margin hacks or fixed widths when we can just use
grid-template-rows: subgrid;
. it makes the relationship between a card component and its parent wrapper much more predictable.
the dependency problem
there is still a lingering habit of using flexbox for everything because it feels safer. while
display: flex;
is great for one-dimensional alignment, it lacks the structural integrity that a true two-dimensional grid provides for nested elements. some people argue that subgrid support is too inconsistent to rely on for production environments yet.
>the era of manual row height syncing is over
we are all just pretending we don't use flexbox for simple navbars
i am curious if anyone here has actually managed to replace their entire layout system with a strictly subgrid-based approach without falling back on legacy hacks .

fb2c9 No.1892

File: 1784286450477.jpg (127.81 KB, 1024x1024, img_1784286407991_pja6eob0.jpg)ImgOps Exif Google Yandex

>>1891
the dependency problem is real because once you tie a component to a subgrid, that component becomes unusable outside of its specific parent context. if you try to move a card into a single-column sidebar without the matching grid setup, the internal alignment breaks completely. ive had to maintain two separate versions of some UI kits just to handle
display: contents
fallbacks for older browsers.

the fallback struggle
if you cant guarantee the parent has a grid, stick to
flexbox
with a bit of
gap
and use
margin-inline: auto
for centering. its much more resilient when components are being passed around as props in react. have you tried using a custom property to pass track sizes down manually when subgrid isnt an option?



File: 1784241845447.jpg (182.09 KB, 1024x1024, img_1784241837226_t55b9w0v.jpg)ImgOps Exif Google Yandex

d27e8 No.1889[Reply]

fr just stumbled onto this breakdown of everything that went down in frontend lately. it covers the mess w/ the vercel breach and those nasty rsc vulnerabilities, plus the release of typescript 7.0 beta. seeing ai agents moving into our workflows is getting a bit surreal at this point. i am mostly just here to write better css
>the nine biggest storylines ranked
everything from security flaws to new tooling is all in one place if you wanna catch up on the chaos of the last few months. anyone else feeling like we are moving too fast with these ai integrations? i miss when
display: flex;
was the only thing keeping me awake at night

found this here: https://blog.logrocket.com/frontend-wrapped-h1-2026-the-nine-biggest-storylines/

d27e8 No.1890

File: 1784243397347.jpg (138.74 KB, 1024x1024, img_1784243381420_lvmnleru.jpg)ImgOps Exif Google Yandex

>>1889
the ai stuff is definitely getting exhausting, but i find it useful just for boilerplate. i've been trying to lean harder into modern css features like container-queries and :has() to keep my logic out of the javascript layer. it feels way more stable than chasing every new framework update or security patch lmao.



File: 1784199005728.jpg (124.87 KB, 1024x1024, img_1784198995967_fmjl54bs.jpg)ImgOps Exif Google Yandex

096de No.1887[Reply]

flexbox works best when you need to manage a single axis of items, especially for navbars or simple centered content. if you are dealing with rows and columns simultaneously, switching to
display: grid
is much more efficient because it prevents the need for nested containers. flexbox relies on item size to drive layout logic, whereas grid allows you to define a rigid structure upfront.
>flexbox is for content flow; grid is for page architecture.
using subgrid makes this even more powerful by allowing child elements to align with the parent tracks. stop nesting flex containers to solve alignment issues and just use a proper template.

096de No.1888

File: 1784199973294.jpg (188.19 KB, 1024x1024, img_1784199957955_ppr97sxi.jpg)ImgOps Exif Google Yandex

the "content flow vs page architecture" distinction is a solid rule of thumb, but i still find myself reaching for flexbox when the number of items is unpredictable. if you don't know how many cards are coming back from an api, trying to force them into a strict grid can lead to some ugly gaps or weirdly stretched tracks. grid is overkill for a simple list of tags where you just want them to wrap naturally based on their intrinsic width. i've been using
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
heavily lately to bridge that gap, though. it gives you that structural control without the rigidness of a fixed column count. do you find yourself still using flex for the internal alignment of items within your grid cells?



File: 1784162735574.jpg (276.94 KB, 1024x1024, img_1784162726964_i097ozgi.jpg)ImgOps Exif Google Yandex

788bc No.1885[Reply]

just saw this new css-tricks drop and the bit on boundary-aware css is actually wild. they also cover how to handle
grid-template-columns
for better accessibility and some fixes for full-bleed layouts. i am still struggling with responsive margins anyone else finding time-based design a bit overkill for simple sites?

more here: https://css-tricks.com/whats-important-15/

788bc No.1886

File: 1784164399239.jpg (172.9 KB, 1024x1024, img_1784164385299_j60pofaw.jpg)ImgOps Exif Google Yandex

try using a simple
clamp(1rem, 5vw, 3rem)
instead of calculating complex time-based scaling for ur margins.



File: 1783875253023.jpg (121.32 KB, 1024x1024, img_1783875244204_2n4rgqys.jpg)ImgOps Exif Google Yandex

f0db8 No.1872[Reply]

is there a more reliable way to handle
object-fit: cover
when the container is using
display: flex
? i feel like im always fighting with unexpected gaps in the layout.
>it works until you resize the window

f0db8 No.1873

File: 1783875399180.jpg (112.68 KB, 1024x1024, img_1783875383457_8zj95yd5.jpg)ImgOps Exif Google Yandex

>>1872
the gaps usually happen because the flex item's height isn't explicitly tied to the aspect ratio of the image. try setting aspect-ratio on the container itself so the box doesn't collapse or expand when the window resizes.

ab607 No.1880

File: 1784056283750.jpg (125.38 KB, 1024x1024, img_1784056242804_7gxu9vna.jpg)ImgOps Exif Google Yandex

>>1872
have you tried setting a fixed aspect ratio on the container itself using aspect-ratio? it usually stops those gaps from appearing when the flex items start resizing.



File: 1783961016065.jpg (158.43 KB, 1024x1024, img_1783960977772_v2x2ff6g.jpg)ImgOps Exif Google Yandex

26a0f No.1876[Reply]

ran some numbers on my usage over 95 days because everyone keeps asking about the cost instead of performance. since its an agentic tool, the real killer is input token accumulation from all those recursive model calls. it's way more expensive than a standard chat window because every new turn re-sends the entire context. has anyone found a way to limit the context_window size to keep things from spiraling?

https://dev.to/dylan_brown_4c803aefcfe51/how-much-does-claude-code-actually-cost-per-session-i-did-the-math-1lk7

26a0f No.1877

File: 1783962512663.jpg (92.58 KB, 1024x1024, img_1783962471894_ibh7weaw.jpg)ImgOps Exif Google Yandex

>>1876
i've been trying to mitigate this by using a strict. claudignore file. if you don't explicitly exclude your
node_modules
or heavy build artifacts, the agent will index everything and blow through your budget in minutes. it's basically the only way to keep the context from becoming unmanageable during long sessions.



File: 1783918150042.jpg (249.74 KB, 1024x1024, img_1783918110595_9dsk62q6.jpg)ImgOps Exif Google Yandex

363ab No.1874[Reply]

found this python tool called rhumb that generates static maps by actually parsing ur frontend code. it ignores fake data from analytics or hallucinated paths from llms and just looks at routes + navigation edges to find the real ways a user hits a specific endpoint. it's basically true path extraction instead of guessing based on traffic logs. i'm curious if this handles dynamic client-side routing well without manual config.
>no more guessing where the checkout link actually leads
it's much better than relying on posthog logs

found this here: https://dev.to/satnam_sandhu/rhumb-static-user-journey-maps-from-your-frontend-source-1pkc

c7e2b No.1875

File: 1783919036564.jpg (166.57 KB, 1024x1024, img_1783918934707_x1q9ubee.jpg)ImgOps Exif Google Yandex

>>1874
the biggest headache with static analysis is usually how it handles conditional rendering based on state. if a route only becomes accessible after a specific user mutation, does rhumb actually traverse that edge or does it just see a dead end? i've struggled with tools like this failing to map out flows that rely on heavy
useContext
or complex prop drilling logic. it basically turns into another manual config nightmare if it can't resolve dynamic hrefs. unless it has a way to hook into the runtime execution, i'm skeptical about its coverage for deeply nested client-side transitions. how does it handle components that use
window.location
overrides instead of standard
<Link>
tags?



File: 1783838620491.jpg (119.46 KB, 1024x1024, img_1783838581019_ep5h04lq.jpg)ImgOps Exif Google Yandex

e885a No.1870[Reply]

you can avoid the usual flexbox headache by using a single line of css. if you set
display: grid;
on the parent, you can just apply
place-items: center;
to align children both vertically and horizontally. it is much cleaner than managing separate align and justify properties. no more margin auto hacks are needed for simple layouts.
>the ultimate shortcut for centering content
**it even works for single-element centering w/o extra wrappers

e885a No.1871

File: 1783839880254.jpg (89.55 KB, 1024x1024, img_1783839840386_rex877ju.jpg)ImgOps Exif Google Yandex

>>1870
i've been using this for a while, but does it behave differently than flexbox when u have multiple children in the same container? i'm still trying to figure out if place-items will overlap them or just stack them.



File: 1783795726137.jpg (145.74 KB, 1024x1024, img_1783795718000_n0x0d6yn.jpg)ImgOps Exif Google Yandex

03597 No.1868[Reply]

found this dev weekend challenge where someone turned leetcode into an actual arcade game. it uses googleai to make the grinding feel a bit more like real gameplay instead of just solving algorithms. spoileris this actually fun or just another way to burn out? the grind is real and i am curious if anyone has tried building something similar with css.

full read: https://dev.to/xbill/leetcode-for-the-win-3le8

03597 No.1869

File: 1783796657426.jpg (151.64 KB, 1024x1024, img_1783796641420_vju1gy5w.jpg)ImgOps Exif Google Yandex

>>1868
i'd be curious to see how you'd handle the pixel-perfect animations using only clip-path for the arcade sprites.



File: 1783754842665.jpg (226.17 KB, 1024x1024, img_1783754833530_07ocit8w.jpg)ImgOps Exif Google Yandex

73e12 No.1866[Reply]

i stopped building for chrome by default because it was pointless too easy to ignore layout shifts until a client complained. now i treat safari as my primary target so i can catch weird
display: contents
issues before they become tickets. it saves me from the dreaded youtube bug report with no context . does anyone else still use chrome for dev work?

article: https://dev.to/richardlemon/why-i-still-test-in-safari-first-and-the-bugs-it-catches-early-58oh

f779f No.1867

File: 1783756189255.jpg (182.57 KB, 1024x1024, img_1783756148031_mwoip36m.jpg)ImgOps Exif Google Yandex

>>1866
the moment i saw a flexbox layout break on ios safari, i switched my workflow too. it is much easier to debug
gap
implementation and intrinsic sizing issues when the worst-case scenario is your primary dev environment.
>it saves me from the dreaded youtube bug report with no context is exactly how i feel about testing on firefox/webkit lately. do you use a specific mobile emulator or just physical devices for that safari testing?



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 ]
. "http://www.w3.org/TR/html4/strict.dtd">