Logical pixel density on high DPI mobile screens
I am tired of seeing people just set fixed widths for icons or small decorative elements. It works fine on a standard desktop monitor but looks tiny and useless when you scale it up to a high density phone screen. A lot of developers think because the resolution is high that everything will look sharp, but they forget about physical size. I want to see if anyone here actually tests their assets using real device pixel ratios instead of just resizing the browser window on a laptop. It is easy to miss how small a button or an icon becomes when you are looking at it through a desktop emulator. A good experiment would be to take one specific component and test it across three different device densities this week. Check if your hit areas actually make sense when the screen gets packed with more pixels. It makes a massive difference in whether someone can actually interact with the UI or if they just end up tapping everything around the target. Measurement is useless if you are not looking at the right hardware during the audit.input type text height on ios mobile
stop trying to fix it with padding or margins because that'susing svh for mobile viewport height
i'm tired of seeing layouts jump around when the browser chrome hides or shows on scroll. if you aren't using height: 100svh; for your main wrappers yet, you're basically just making things up as you go. it's actually annoying to watchpercentage based column widths on tablet portrait
i tried using percentages for my main grid columns but everything gets way too squished when i rotate an ipad to portrait mode. ngl it's driving me crazy trying to decide if i should just hardcode a pixel value at that specific breakpoint or if there is a better way to handle the scaling.logical properties for padding and margins
tried switching my whole layout system over to logical properties instead of physical ones last week. it's actually much easier when you're dealing with multi-directional layouts or anything that might hit a rtl context eventually. i used to spend way too much time manually swapping margin-left and margin-right for different locales, which waspadding-inline: 2rem;margin-block: 1rem;is way cleaner than the old physical mess. everything feels more consistent once you stop thinking in terms of top or left. does anyone actually still use margin-left for anything besides legacy support?
exit flow UX patterns
I was just reading about how much work goes into subscription cancellation flows since they're becoming a legal requirement in some places. It's not just a simple button anymore; you have to actually confirm auto-renewal is off and explain what access stays active. I always wonder if we're overthinking the confirmation modals for unsaved work or if we should just let people click through more aggressively.clamp for typography scale
i'm tired of seeing people manually hardcode every single font size at different breakpoints instead of just using css clamp. it'sover-reliance on max-width for mobile containers
client wants everything to scale perfectly so they keep using max-width on every wrapper. it's a nightmare when you actually have to deal with sidebars or complex layouts on tablets. im seeing way too many devs forget about the actual overflow behavior of the parent..container {max-width: 100vw;overflow-x: hidden;}container queries for card layouts
I've been moving away from media queries for my component libraries lately. Using @container instead of @media makes it so much easier to drop a card into a narrow sidebar without the layout breaking. It doesn't care about the whole viewport, just how much room its parent actually gives it. I usually set the container type to inline-size on the wrapper..card-wrapper {container-type: inline-size;}vh units on mobile safari
still getting those weird layout jumps when the address bar hides and shows. it's driving me crazy trying to center stuff vertically with height: 100vh when the actual viewport changes every time someone scrolls a pixel. just use dvh already so i don't have to write these shitty hacks for every single landing page.clamp for fluid typography vs step-based scales
i'm tired of manually calculating every single breakpoint just to keep my font sizes from looking ridiculous on tablets. i tried using font-size: clamp(1rem, 5vw, 3rem); yesterday and it's way cleaner than the old method of jumping through hoops with media queries. does anyone actually find these fluid scales predictable when they hit weird viewport widths?percentage based widths for hero images
i'm tired of seeing people use width: 100% on massive high-res assets and then wondering why the layout breaks when someone opens it on a huge ultra-wide monitor. it's not "fluid" if it just stretches into a blurry mess that makes the site look like garbage. you really should be setting a hard max-width limit so the image actually stops growing at some point.breakpoint logic for ultra-wide monitors
i'm tired of seeing people just stack everything vertically once they hit 2560px. it looks like garbage on a studio display if you don't use max-width constraints to keep the content from stretching across the whole screen.@media (min-width: 2560px) {.container {max-width: 1440px;margin: 0 auto;}}aspect ratio on container queries
i'm trying to use aspect-ratio inside a container query but it keeps collapsing to zero when the parent isn't a fixed size. i tried setting an explicit width on the element itself but that totally defeats the purpose of letting the container dictate things.@container (min-width: 300px) {.card {aspect-ratio: 16 / 9;}}subgrid alignment issues in nested flex containers
i was messing around with a client site today and kept hitting this wall with subgrid. it's supposed to make everything line up across different sections but things get weird once you wrap them in a flexbox. the grid tracks just don't seem to pass through the flex item correctly if that item isn't also explicitly set to display as a grid. i spent an hour trying to figure out why my columns were drifting by a few pixels on tablet views. it turns out the flex container was compressing the child element and breaking the whole alignment logic. you can't just assume subgrid works everywhere without checking the parent layout first. it makes simple vertical rhythm impossible when you have deeply nested components. i ended up just falling back to standard grid lines for everything to save my sanity. it feels like a massive step backward in workflow. has anyone actually managed to get subgrid working inside a complex flex layout without it breaking on mobile?flex basis behavior on wrapped rows
i'm trying to get these cards to fill the space properly when they wrap but flex-basis is acting weird with my gap settings. it's leaving these massive awkward white spaces on the right side of the container whenever a row isn't perfectly full. i tried setting flex-grow to 1 but then the last card stretches across the whole bottom and looks ridiculous. i even tried using calc to subtract the gap from the basis but the math is just breaking my layout on smaller viewports. it shouldn't be this hard to make a simple grid-like row that actually feels fluid. has anyone figured out how to force them to stay roughly the same size without the weird stretching?ch: overflow-x on mobile typography
I'm sick of seeing text just cut off mid-word because someone forgot how long a single string gets when you scale up an H1. It's not enough to just set a container width; you actually need to test if your letter spacing is pushing things into a horizontal scroll nightmare on small viewports. Try building a component this week that useshyphens: autoand see if it actually saves your layout from looking like garbage.
h1 {hyphens: auto;overflow-wrap: break-word;} intrinsic sizing for image containers
i've been struggling with how aspect-ratio handles lazy loaded images because it feels so brittle when the source dimensions aren't known immediately. i tried switching to using width: min(100%, auto) combined with some clever object-fit logic, but it's such a headache for the layout engine to calculate everything on the fly without causing that nasty layout shift. it feels like we're constantly choosing between a perfectly stable grid and actually letting the content breathe naturally. do you find yourself leaning more on hardcoded ratios or are you actually trusting intrinsic sizing to do the heavy lifting now?booking. com widgets in webflow
those booking.com affiliate embeds are such a pain with that fixed pixel width causing horizontal scroll on mobile. you've gotta manually set data-width="100%" and avoid using 100% for the height or the whole script just breaks. i'm still not sure if those Affiliate Partner widgets actually play nice with container queries once they're nested in a flexbox.fixed width breakpoint hell
setting specific breakpoints for every device is just a massive waste of time. i'm tired of seeing devs hardcode @media (max-width: 375px) into their stylesheets like it's some kind of law. if you aren't using fluid layouts with percentages or flexbox to let the content breathe, you're just building for a phantom device list instead of real users@media (min-width: 1280px) {.container { width: 1200px; }}touch target sizing on hover states
been looking at this client's mobile site and they've got these tiny icon buttons that only expand when you actually hit them with a pointer. it's a total mess because the desktop hover state is baked into the base styles, so now mobile users are basically blind tapping empty space..btn:hover {transform: scale(1.5);}aspect-ratio on embedded video elements
I'm tired of seeing people use padding-top hacks for aspect ratios anymore. It's so messy and makes the DOM harder to read when you have to wrap everything in a dedicated container just to keep the height from collapsing. Modern browsers handle the aspect-ratio property perfectly fine now, so there's no reason to stick with the old way. Just set it directly on the video or iframe tag.iframe {width: 100%;aspect-ratio: 16 / 9;}using max-content for table cells
i'm sick of seeing layout breaks because some long string in a table cell is forcing the whole container to expand. i just set the width tomax-contenton the header and let it breathe instead of fighting with
table {width: 100%;}td {white-space: nowrap;}text-overflow: ellipsison tables anymore?
subgrid alignment issues with nested grids
I'm trying to get a card component to align its footer text across a whole row using subgrid, but it keeps breaking when the parent container changes size. The child grid is inheriting the tracks but the vertical alignment feels totally off on Safari compared to Chrome..card-container {display: grid;grid-template-rows: subgrid;} min-height on mobile nav bars
i'm tired of seeing nav bars collapse when there's no content or icons load late. i usually just set a minimum height usingvhunits so the layout doesn't jump around while the assets are fetching. it's better than letting the header shrink to nothing and breaking the whole page flow.
header {min-height: 60px;display: flex;}pixel density on high-res mobile screens
most devs just throw a generic image at the client and call it a day. im seeing way too many sites serving 1x assets to retina displays because they're lazy with srcset. try testing your heaviest hero images on an actual iphone today instead of just using chrome devtools.<img src="low-res.jpg"srcset="high-res.jpg 2x"alt="hero">
min-width media queries for mobile first workflows
been seeing too many people starting with desktop styles and trying to strip things away for mobile. it's a@media (min-width: 768px) {.sidebar {display: block;}.main-content {margin-left: 250px;}}aspect ratio on input elements
i'm tired of seeing text inputs that stretch to fill a whole row when they don't need to. it looks cheap and breaks the visual flow of a form. i started using aspect-ratio for my search bars and single-line inputs so they stay a consistent shape regardless of how much the container expands. it keeps things from lookinginput[type="search"] {aspect-ratio: 16 / 4;width: 100%;}em em vs rem for mobile padding
been fighting with a client who wants everything to scale perfectly on every single device size. they think setting padding: 5% is some kind of magic fix for all mobile screens but it just makes the gutters look tiny on narrow phones. i switched to using rem for all my spacing and it's way more predictable when users change their browser font settings. if you use percentages for padding you're basically asking for layout chaos once the viewport gets weird.intrinsic sizing on images inside flex containers
tried to fix a layout today where an image kept blowing out its container because it wouldn't shrink. i've been using object-fit for ages but that doesn't actually stop the element from being huge if the content size is weird. turns out i needed to use min-width: 0; on the flex item itself just to get the image to respect the boundaries.overscroll-behavior on nested scroll areas
been fighting with this all morning because the whole page keeps bouncing when i'm just trying to swipe through a small product carousel. it's such a mess when you don't explicitly set overscroll-behavior: contain on those inner containers..carousel {overflow-y: auto;overscroll-behavior: contain;} media query range syntax
I'm tired of seeing everyone still using the old min-width and max-width combo for everything. It makes the stylesheets way harder to read when you're nesting complex logic. Try switching your next mobile breakpoint to the new range syntax instead:@media (width <= 600px) {/* styles here */}aspect ratio on grid template rows
I'm getting tired of trying to force consistent row heights with grid-template-rows: repeat(3, 1fr) when the content is uneven. It's much easier to just set a specific aspect ratio on the child elements so they don't collapse or stretch weirdly when the column width changes.container queries for component margins
i'm tired of seeing people use media queries to adjust local spacing. it's basically.card {container-type: inline-size;}touch-action for scroll hijacking fixes
someone messed up the global css again so now my custom slider is basically unusable on mobile because the browser keeps trying to pan the whole page. just add this to your touchable elements if you're doing something weird with gestures and don't want the viewport jumping around like crazy. it's a total lifesaver when dealing with buggy vanilla js implementations..slider-track {touch-action: pan-y;} svghandling for icon scaling
i tried using viewbox units to scale icons inside flex containers instead of setting fixed pixel dimensions. it works fine until you hit a weirdly sized viewport where the icon ends up looking tiny or massive compared to the text next to it. i'm back to using rems for the svg width so it actually respects the font size. do you guys stick to rems for icons or just hardcode the pixels?logical viewport units for layout
stop using px for anything related to spacing if you actually care about zoom levels. i'm tired of seeing people hardcode 20px padding when it just breaks everything once the user scales their text up. try swapping out fixed values for 1rem or even better, use ch units for max-width on text containers so the line length stays readable regardless of font size.clamp for fluid typography is killing me
everyone thinks they're being clever with clamp(1rem, 5vw, 3rem) but it's just making debugging a nightmare. i'm looking at a mobile view and can't tell if the font is too small because of the math or some weird inherited style. most people forget to check how it looks on tiny screens where that middle value basically breaks everything.using em for media query breakpoints
tired of recalculating every single breakpoint whenever someone changes the base font size. switching everything to em makes it much easier to scale the whole layout at once without breaking the grid.flexbox gap vs margin for spacing items
i'm tired of calculating margins for every single child element in a row. using gap is way cleaner but it feels weirdly inconsistent on older browsers that don't support it properly. i tried todisplay: flex;gap: 1rem;
using object-fit for responsive banner backgrounds
i'm tired of seeing banners get squished on landscape mobile. just use object-fit cover so the image crops instead of lookingimg.hero {width: 100%;height: 400px;object-fit: cover;}using min-content for narrow sidebars
was working on this client site yesterday where the sidebar was just eating up all the space on tablet. i tried setting it to a fixed width but it looked totally broken on smaller screens. ngl i almost just gave up and went with a massive media query mess. then i remembered using min-content for the width instead of some arbitrary pixel value. it basically shrinks the column down to just the widest element inside it like a button or a heading. works great when you have a sidebar with text but don't want it to swallow the main content area..sidebar {width: min-content;min-width: 150px;} container queries for card components
been looking at this layout for an hour and it's driving me nuts. i tried to use a standard media query but the component breaks when it's shoved into that narrow sidebar on the dashboard. it doesn't matter how much space the viewport has if the parent is only 300px wide. i finally switched to @container so the cards actually look right regardless of where they live. it's basically magic for components but setting up the container type everywhere is such a pain in the neck..sidebar-container {container-type: inline-size;}using max-width on images to prevent layout shifts
Images always blow out their containers when they haven't loaded yet. I started adding a simple rule to my global stylesheet so things don't jump around while the user is scrolling. It keeps everything within the parent bounds without needing extra wrapper divs for every single asset.img {max-width: 100%;height: auto;} percentage based widths on desktop
i'm tired of seeing people use 100% width for everything on large screens. it's.container {width: 100%;max-width: 800px;}logical properties for padding and margin
been cleaning up some old stylesheets and realized i've been using physical properties way too much. it's such a headache when you try to support vertical text or different writing modes because everything just breaks. switched to inline-start and block-end so the layout actually stays sensible without constant overrides.padding-inline: 20px;margin-block: 1rem;
Subgrid alignment issues with nested flex items
I'm seeing weird gaps in my multi-line cards when using subgrid for the content area. I tried setting the parent to display: grid and used the same template rows on the child, but it's still not.card-container {display: grid;grid-template-rows: subgrid;} aspect-ratio on fixed height containers
still seeing people hardcode height: 500px on mobile cards. it's absolute madness when you have varying content lengths. just use aspect-ratio: 16/9 and let the browser handle the math. if the image is weirdly sized, at least it won't break your layout or create huge gaps of empty space. honestly, stop using fixed heights for anything dynamic. it makes the whole grid look broken on small screens..card-img {width: 100%;aspect-ratio: 4/3;object-fit: cover;}viewport margin auto on mobile viewports
was checking a client site today and noticed they're using margin auto on the main container for mobile too. it'susing min-width for card grid gaps
I hate seeing huge gaps between cards when you're on tablet sized screens. Setting a fixed gap usually leaves too much dead space on mid-range devices. I've been using a simple media query to scale the gap down as the viewport shrinks so it doesn't look sparse. It keeps the layout tight without needing complex math.@media (max-width: 768px) {.grid-container {gap: 1rem;}}aspect ratio on flex basis
i've been messing with flex-basis lately and noticed how easily it breaks everything when you try to force an aspect ratio. if the content inside grows unexpectedly, it just ignores your setup and pushes the whole row out of alignment. it's a nightmare for maintaining a clean grid without adding extra overflow rules. anyone else dealing with this on their mobile layouts?using container queries for aspect ratio
trying to get a card component to behave without hardcoding every single breakpoint is driving me insane. i want to see if we can ditch the media queries entirely and just use @container with aspect-ratio on the image element. it should scale based on the parent width instead of the viewport which would be way cleaner for reusable components. let's all try to build a single component that switches from landscape to portrait using only container queries this week. if tailwind users want to try it, good luck with those utility classes. tbh just seeing it work without a giant mess of @media blocks would be niceclamping font size with clamp instead of media queries
been trying to ditch those massive lists of media queries just for typography. it's such a pain to manage five different breakpoints when you can just use one line.rem using for media queries
I've stopped using pixels for my breakpoints because it makes scaling the whole UI way easier when someone changes the root font size. It keeps everything in sync without having to recalculate every single margin and padding value.@media (min-width: 40rem) {.container {padding: 2rem;}} aspect ratio for images in grid layouts
i'm sick of seeing layout shifts every time a high-res image finally loads. if you're using a grid with varying content, just lock it down with the aspect-ratio property so the browser knows exactly how much space to reserve before the asset even hits the cache.img {width: 100%;aspect-ratio: 16 / 9;object-fit: cover;}fixed width for buttons on mobile
had a client freak out yesterday because their call to action was getting cut off on small screens. i tried to use padding but it just made things worse on some weird devices, so now im stuck usingmin-width: 120px;width: auto;for everything. ngl its such a clunky fix compared to letting the text breathe.
input type text sizing on mobile
I'm tired of seeing those tiny zoom jumps on iOS when users tap an input. It's such a bad experience for anyone trying to fill out a form quickly. The fix is basically just making sure your font size stays at least 16px so the browser doesn't feel the need to scale everything up. I've been testing it with a simple media query that targets only mobile viewports.@media screen and (max-width: 768px) {input, select, textarea {font-size: 16px;}}vh units on mobile browsers
it's driving me crazy how safari jumps around when the address bar hides. using 100vh for a hero section issvh for mobile viewport height
been fighting that weird layout shift when the address bar hides on mobile all morning. using 100vh is such a headache because it doesn't account for the browser UI actually being there or not. just switch to svh if you don't need legacy support for ancient browsers..hero {height: 100svh;}ch: text overflow with text-wrap: balance
Been seeing way too many headers breaking mid-word on mobile lately. It's honestly painful to look at when you have a nice serif font and the line breaks right after a single character. It totally destroys the visual weight of the headline. I hate it when a huge chunk of whitespace just sits there because the second line only has two letters. If you're dealing with short headings or titles that shouldn't look like a ragged mess, just use text-wrap: balance. It tells the engine to try and distribute the words more evenly across lines. It's not for long paragraphs though, because it'll kill your performance if the browser has to recalculate every single line break in a huge block of text. Just stick to using it on h1 or h2 elements where you want that pretty typographic balance without the heavy lifting.h1 {text-wrap: balance;}clamp() vs media queries for fluid typography
been messing with clamp() for my last two client sites because writing out four different breakpoints for font sizes is such a waste of time. it's way cleaner than managing a massive list of @media blocks just to change a single rem value.font-size: clamp(1rem, 5vw, 2.5rem);
fixed height on navigation bars
someone's design spec just handed me a nav bar with a fixed 60px height for mobile. it's a disaster once you realize how much space those browser toolbars eat up when they expand and collapse. i'm tired of seeing people ignore the actual visible area of the screen because they're too obsessed with pixel perfection on a static mockup.intrinsic sizing on inline-size
been messing with width: intrinsic on some sidebar elements lately and it's honestly a mess when the content is unpredictable.touch action none for scrollable areas
dealing with that cafe site again where the map overlay keeps stealing the page scroll. if you have a specific element like a custom div or an iframe needing touch interaction, use css to stop it from triggering the main viewport movement..map-container {touch-action: none;}overflow-x on desktop when using logical properties
been looking at some old legacy code today and it's such a mess. i tried switching to inline-start for some margins but ended up with this horrible horizontal scroll because the width calculation went sideways. it's fine until you realize the padding doesn't behave like you'd expect in different writing modes. anyone else running into weird layout breaks when using logical properties on non-ltr sites?intrinsic sizing for text wrapping
been dealing with some nasty layout shifts because of long urls in my footer lately. i've started using the min-content value on the width property whenever i have a single element that just won't behave. it forces the box to shrink to the smallest possible width without breaking the whole grid row, so it's basically the only way to stop text from bleeding out of its container ⚡.footer-link {width: min-content;overflow: hidden;text-overflow: ellipsis;}min-content for wrapping text in flex items
I've been seeing too many cards with weirdly stretched text because of default flex behavior. Setting width to min-content helps when you want your label or small icon container to only take up the space its longest word needs. It stops that.label {flex: 0 1 auto;width: min-content;} subgrid for nested layouts
tried using subgrid on a client's dashboard today and it's still garbage. everything breaks the second you change a single row height in the parent..card-container {display: grid;grid-template-rows: subgrid;} percentage width vs flex-basis for column sizing
been staring at this same dashboard for three hours and i'm convinced using percentages for columns is just asking for trouble. it looks fine on my monitor but as soon as you add any padding or borders the math falls apart and everything shifts. i tried switching to flex-basis with a little bit of margin and it actually stays where it belongs without breaking the layout. there's no point in doing manual math when flex handles the overflow better..column {flex: 1 1 30%;margin: 10px;}aspect-ratio on card images causing layout shifts
I've been seeing too many people using fixed heights for cards lately. It's making the whole grid jump around while the images load which is.card-img {width: 100%;aspect-ratio: 16 / 9;object-fit: cover;} max-width on container elements
I'm tired of seeing people use arbitrary pixel values for site containers when they could just use clamp. It makes every single breakpoint feel like an extra chore to manage. Just use something like max-width: clamp(300px, 90%, 1200px); and let the browser handle the scaling between your actual content breakpoints. It's way less work than writing a dozen media queries for every small tweak.button padding on small screens
I'm tired of seeing buttons that are basically impossible to tap on mobile. People keep making them too small or cramming them too close to other elements. I always use a minimum of 44 pixels for the touch target height regardless of what the visual design says. It doesn't matter if the icon looks tiny in the mockup. If it's smaller than that, users are just going to misclick everything. I usually wrap the actual button style in a larger transparent padding area to hit that target. It saves me from getting bug reports about broken navigation every single week.using em for margins on mobile
somebody sent me a design spec with huge em based padding for mobile cards. everything looks like it's exploding because of the font size increase on some devices. just use rem or px so things actually stay predictable across different viewports. tbh it's a mess to debug when every margin shifts randomly based on text scalingtouch-action for preventing double tap zoom delay
I'm tired of seeing people use a meta tag to disable scaling. If you just need to stop accidental zooming on a custom slider or canvas element, use CSS instead so the browser doesn't break accessibility features elsewhere..interactive-element {touch-action: pan-x;} max-width on container queries is a trap
been trying to fix this sidebar component and kept hitting walls because of how max-width interacts with the parent sizing. someone sent me a snippet that looked like it would work but it just collapsed everything to zero.@container (max-width: 400px) {.card { width: 100%; }}using svh for layout height
tried switching from 100vh to 100svh on this landing page today. it's much better because the address bar doesn't hide half my footer when people scroll. still hate how some browsers handle the transition during resize though. looks jittery as hell. honestly i think height: 100dvh;fixed width on input fields is a nightmare
always seeing people hardcode width: 300px on form inputs like it's still 2005. makes everything break when the viewport shrinks below that value. use max-width instead so the element can actually shrink with its parent. if you're using a framework, just check your global styles.input {width: 100%;max-width: 400px;} using light-dark() for automatic theme inversion
finally seeing someone talk about using light-dark() to avoid those massive duplicate stylesheets. that trick with setting -theme as a variable to handle data-theme="inverted" is pretty clever, but i'm not sure how it handles complex components that need specific overrides.object-fit scale-down for weirdly sized containers
i've been using scale-down for those annoying gaps when an image is too small to fill its parent. it's way better thanimg {width: 100%;height: 100%;object-fit: scale-down;}min-width on grid tracks causing horizontal overflow
Been struggling with this all morning on a dashboard project. I tried to set a minmax for columns but it's totally ignoring the container width once the content gets too chunky.grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));overflow: hidden;
aspect-ratio on img tags is breaking my layout
still seeing devs use height: 100% or some weird calc instead of just setting aspect-ratio: 16 / 9. it's literally one line. i saw a ticket today where someone was trying to fix a jumping layout with a massive media query block and a bunch of padding-top hacks. it's so much cleaner to just let the browser handle the proportions. looks like they were using some old legacy-css-library that doesn't even support modern properties properly. if you aren't using aspect-ratio for your card thumbnails, you're basically just making extra work for yourself. i hate seeing these massive files full of margin-bottom: 56.25% nonsense. it makes the devtools nightmare even worse when you're trying to debug a simple flexbox issue.img {width: 100%;aspect-ratio: 4 / 3;object-fit: cover;}rem vs em for margin on components
I've been trying to stick to rems for everything lately but it's making my component margins feel totally disconnected from the local text size. If I change a heading to be larger, the spacing around it stays tiny because rem ignores the parent's font scaling. Using em for margins in cards works way better since the whitespace scales with the content itself. It's much more predictable when you're nesting elements..card {font-size: 1.25rem;margin-bottom: 1em;}messy layouts are coming back
everyone is obsessed with adding photocopy textures and scribbles to everything now. they're calling it this big punk revival with cut-out typography and distorted photos. honestly sounds like a nightmare for maintaining any kind of design system or accessibility standards. how am i supposed to scale anything if the whole point is to make it look broken?intrinsic sizing on flex items with long words
I'm struggling with a flex item that keeps expanding past its container because of a single long URL in the text. I tried setting overflow: hidden but it just cuts off the text instead of wrapping it. I even added word-break: break-all but the layout still breaks when the string is really long. It seems like min-width: 0 isn't doing enough here since the content is forcing the width out..card {display: flex;flex-direction: column;}min-width on flex items is killing my center alignment
been trying to center a simple nav but some idiot set min-width: 100% on the child elements. now it's just overflowing everything and ignoring the justify-content: center property entirely.aspect ratio box method for older browser support
been seeing way too many people ditching aspect-ratio in favor of that old padding-top hack. it's honestly such a messy workaround when you have actual modern support to rely on. i was looking at this legacy codebase today and it's just full of:.card {height: 0;padding-bottom: 56.25%;}inline size for logical properties
been staring at this one bug all morning because i keep using width on elements that shouldn't have it. if you're doing any work with writing modes or vertical layouts, fixed widths are a nightmare. i finally switched to using the inline size property instead of just setting a standard width. it's much cleaner when things rotate..sidebar {inline-size: 250px;block-size: auto;}padding left on container when using flex-direction column
been messing with this side nav for an hour and it's driving me crazy. i changed the layout to a column stack for mobile but now the padding on the main content area looks totally broken. i tried setting a specific percentage for the left margin but that just makes things look weird on tablets.@media (max-width: 768px) {.content {padding-left: 0;}}touch action property on mobile buttons
I noticed some weird lag on our primary call to action button during testing on older Android devices. It felt like the click was delayed by a split second after the tap. I realized the browser was still waiting to see if the user was actually trying to scroll or zoom instead of just tapping. Adding touch action none to the css for those specific interactive elements fixed it immediately. Now the tap responds instantly without that weird hesitation. It is a small change but makes a huge difference in how snappy the interface feels.letter spacing on narrow viewports
i'm losing my mind with this line-height on mobile. i tried using a media query to tighten up the tracking for small screens so the text doesn't look like it's falling apart, but now the descenders are hitting the line below. it looks messy and totally unpolished. i even tried adjusting the letter-spacing via a clamp function but that just makes the kerning feel all wonky on larger tablets. it's@media (max-width: 480px) {p {letter-spacing: -0.02em;line-height: 1.2;}}viewport units on mobile keyboard popups
the vh unit is totally broken when the keyboard slides up on ios. it's like everything just breaks and shifts the whole footer way too high. tried using dvh but the layout still jumps around like crazy when i focus an input.height: 100vh;overflow: hidden;
grid auto-flow dense vs sparse
i've been trying to use dense for this gallery but the layout looks totally broken when images are different sizes. it's great for filling gaps but now my content order is a complete mess. anyone actually find a way to make it work without losing the logical reading flow?subgrid alignment issues with uneven content
trying to get my cards to align their headers perfectly but the content height is all over the place. even with subgrid enabled on the child items, it's not grabbing the row tracks from the parent correctly. i tried setting the grid-template-rows to match the main container but everything just collapses..card {display: grid;grid-template-rows: subgrid;}container queries for simple padding tweaks
i'm so tired of seeing people jump straight to media queries just to fix a tiny bit of internal spacing. it makes no sense when you've got a component that lives in both a sidebar and a main content area. if the container is narrow, the padding should shrink regardless of the viewport size. i've been using @container for months now and it's much cleaner. you don't end up with this massive mess of breakpoints that only apply to one specific element.@container (min-width: 300px) {.card {padding: 2rem;}}