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

Catalog (/resp/)

Sort by: Image size:
R: 0 / I: 0

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.
R: 1 / I: 0

touch target padding on mobile buttons

i'm sick of seeing devs set button size by font size alone without any extra padding for thumbs. if you don't add at least 12px of hit area, people are just going to be tapping the wrong links all day.
R: 0 / I: 0

input type text height on ios mobile

stop trying to fix it with padding or margins because that's useless a waste of time. just use appearance: none; and set a fixed height in px so the keyboard doesn't freak out every time someone taps a field. it saves me from having to deal with those weird automatic zoom jumps when the font size is too small
R: 3 / I: 1

using 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 watch

does anyone still bother with the old vh math hacks?
R: 0 / I: 0

percentage 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.
R: 2 / I: 1

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 was stupid a total waste of time. now i just use padding-inline and it handles the heavy lifting without me thinking about it. turns out
padding-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?
R: 1 / I: 0

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.

article: https://blog.logrocket.com/ux-design/ux-exit-flow-design/
R: 0 / I: 0

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's efficient a nightmare to maintain when the math is already done for you.

font-size: clamp(1rem, 2vw + 0.5rem, 3rem);

does anyone actually still write out media queries just to bump up the text size?
R: 0 / I: 0

over-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.
>everything should just shrink to fit the screen
that's how you end up with broken horizontal scrolling and weird white space gaps on certain aspect ratios. if you don't use a more granular approach with flex or grid, you're just waiting for a layout bug to hit. i've seen people try to fix it with:
.container {max-width: 100vw;overflow-x: hidden;}

it's a garbage bandaid that hides the real problem. you should be looking at the specific component constraints instead of just slapping global limits on everything.
R: 1 / I: 0

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;}

It makes reusable components actually work the way they should in a complex grid. If you stick to media queries, you end up writing a dozen different classes for every single placement scenario.
R: 3 / I: 2

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.
R: 3 / I: 2

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?
R: 1 / I: 0

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.
>it scales perfectly to any screen size

that line is such a lie when you're dealing with actual photography. it doesn't scale perfectly if it ends up looking like a pixelated disaster on a desktop. use a container or just set a ceiling for the width so things stay actually usable.

does anyone here actually bother checking their hero scaling on 21:9 aspect ratios?
R: 0 / I: 0

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;}}


does anyone actually use multi-column layouts for the ultra-wide stuff or is it all just one big centered column now?
R: 3 / I: 1

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;}}


does anyone know a way to make this work without hardcoding a width?
R: 0 / I: 0

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?
R: 3 / I: 1

media query based on device width

i'm tired of seeing people build layouts for specific iphone models instead of just using container queries for everything. if it doesn't scale when you drag the window, it's not actually responsive.
R: 1 / I: 1

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?
R: 2 / I: 2

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 uses
hyphens: auto
and see if it actually saves your layout from looking like garbage.

h1 {hyphens: auto;overflow-wrap: break-word;}
R: 0 / I: 0

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?
R: 3 / I: 1

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.

found this here: https://www.webflow.com/blog/embed-booking-com-widget-webflow
R: 1 / I: 1

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; }}


this stuff is why layouts break the second a new phone comes out
R: 2 / I: 0

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.
>on hover, scale up the icon container
it's such a lazy way to handle interaction.
.btn:hover {transform: scale(1.5);}

the dev didn't even bother wrapping it in a media query for fine pointers. anyone else dealing with legacy hover logic on touch devices?
R: 0 / I: 0

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;}


It keeps the layout stable without that extra wrapper div cluttering up the component. It's much cleaner for anyone trying to maintain the markup later. Just don't forget to set a width or it'll default to the intrinsic size.
R: 3 / I: 2

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 to
max-content
on the header and let it breathe instead of fighting with overflow: hidden or weirdly wrapped text.
table {width: 100%;}td {white-space: nowrap;}

does anyone actually use
text-overflow: ellipsis
on tables anymore?
R: 3 / I: 0

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;}
R: 0 / I: 0

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 using
vh
units 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;}


do you guys stick to fixed pixels for nav height or just let them be fluid?
R: 2 / I: 1

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">
R: 3 / I: 1

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 nightmare headache when you're fighting specificity just to hide a massive sidebar on a phone. i prefer building the mobile layout by default and only adding complexity as the screen gets wider. you basically just wrap your desktop-only stuff in a min-width block so it doesn't even touch the small screens.

@media (min-width: 768px) {.sidebar {display: block;}.main-content {margin-left: 250px;}}


it keeps the base stylesheet extremely lightweight for actual mobile devices. if you're working on a project that's already stuck in max-width mode, i get why you'd stick with it but switching to min-width is cleaner long term. do you guys actually bother refactoring old max-width sites or do you just patch them?
R: 2 / I: 2

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 looking broken weirdly empty on wide tablet screens.

input[type="search"] {aspect-ratio: 16 / 4;width: 100%;}


it's a small thing but makes the mobile experience feel way more intentional instead of just letting everything go full width. does anyone actually use fixed widths for inputs anymore?
R: 3 / I: 1

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.
>everything should scale proportionally
it doesn't work like that in practice. just stick to rem so the spacing actually respects the user's preferences instead of some arbitrary width calculation
R: 2 / I: 1

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.
>the image keeps expanding the parent container regardless of width settings
it's such a stupid little gotcha that people keep missing in responsive layouts. you can set every constraint you want but if that min-width isn't there, the flex child is basically going to ignore your wishes. it feels like a fundamental rule that should be common knowledge by now. does anyone actually use aspect-ratio alongside this or do you just stick to height auto?
R: 3 / I: 2

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;}
R: 3 / I: 1

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 */}

It's much more intuitive for anyone else reading the code later. **It actually works in all modern browsers now
R: 3 / I: 1

vh units for mobile hero sections

people keep using 100vh for full-screen landing pages and then they wonder why the bottom of the content gets cut off by the browser chrome on safari. use 100dvh instead so it actually accounts for the dynamic toolbars
it's literally one property
R: 1 / I: 1

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.
R: 0 / I: 0

container queries for component margins

i'm tired of seeing people use media queries to adjust local spacing. it's basically lazy broken logic when you move a card into a narrow sidebar and the padding stays huge. i've started wrapping everything in a container just so the component actually knows its own limits.
.card {container-type: inline-size;}

it makes components actually portable instead of tied to the whole viewport width. do you guys still use media queries for internal element spacing?
R: 3 / I: 2

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;}
R: 3 / I: 1

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?
R: 0 / I: 0

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.
>it works fine on my chrome devtools
that's not a real test. if you aren't testing with 200% zoom, you're basically just making pretty broken layouts. it's a small change but makes a massive difference in accessibility.
R: 0 / I: 0

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.
>it scales perfectly across all devices
no it doesn't, it just hides the mess until you actually test it on a real device. if i see one more complex calc inside a font-size property i might lose it. stick to media queries and just set the actual values. tbh it's way easier to maintain than some magic formula that nobody can read at 2am
R: 3 / I: 2

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.
>everything breaks when you change the root font size
it's honestly a mess when using px for queries because you end up with a thousand lines of redundant overrides. just use em and be done with it.
R: 0 / I: 0

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 to fix patch it with negative margins once and it was a total nightmare.
display: flex;gap: 1rem;

does anyone still bother with the margin-right hack for legacy support?
R: 2 / I: 0

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 looking terrible broken when the aspect ratio shifts. ⚡

img.hero {width: 100%;height: 400px;object-fit: cover;}


does anyone still bother with manual cropping for every breakpoint?
R: 3 / I: 1

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;}
R: 0 / I: 0

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;}


it feels like i'm just rewriting all my old media queries anyway. does anyone actually use container queries for anything other than simple card layouts?
R: 3 / I: 1

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;}
R: 0 / I: 0

percentage based widths on desktop

i'm tired of seeing people use 100% width for everything on large screens. it's elegant totally unreadable when the line length hits like a thousand pixels across the monitor.

.container {width: 100%;max-width: 800px;}


does anyone actually still rely on a fixed pixel cap for main content?
R: 1 / I: 1

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;

waste of time much cleaner for multi-language support. anyone still using padding-left everywhere?
R: 3 / I: 0

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 working aligning the bottom buttons correctly. I haven't run this through a long enough test on Safari yet to be sure if it's a bug or just my setup.
.card-container {display: grid;grid-template-rows: subgrid;}
R: 0 / I: 0

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;}

tbh it's a single line of css and saves so much headache ⚠
R: 0 / I: 0

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's brilliant terrible because it leaves these weird white gaps when the device width is slightly larger than the breakpoint. im tired of seeing devs forget that 375px isn't the only mobile width out there.
R: 3 / I: 2

using 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;}}


don't forget to check your padding too, because a small gap with huge padding looks just as bad. It's much easier than trying to use calc() for every single margin.
R: 2 / I: 0

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?
R: 3 / I: 1

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 nice
R: 0 / I: 0

clamping 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.
>using media queries for every single heading size
it's way too much boilerplate. i started using this pattern for my base scaling:

font-size: clamp(1.5rem, 5vw + 1rem, 3rem);

makes the fluid scaling feel much smoother on tablets. at least until you forget to set the min value
R: 3 / I: 1

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.
>everything breaks when you change the base size

@media (min-width: 40rem) {.container {padding: 2rem;}}
R: 3 / I: 0

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;}

it's basically non-negotiable for any decent performance score. anyone still relying on the old padding-top hack?
R: 0 / I: 0

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 using
min-width: 120px;width: auto;
for everything. ngl its such a clunky fix compared to letting the text breathe.
R: 0 / I: 0

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;}}


It's a hard rule for me now on any client project. Keeps the layout stable and prevents that annoying jumpy behavior during text entry. **Works every time
R: 3 / I: 2

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 is brilliant a disaster because it cuts off the bottom of the content. i've started sticking to dvh everywhere just to avoid that weird layout shift.

does anyone still bother with the overflow trick?
R: 0 / I: 0

svh 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;}

it stays consistent even when the bars pop in and out. anyone still stuck using the old vh hack?
R: 1 / I: 1

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;}


NEVER USE THIS ON LONG BODY TEXT

I saw a dev trying to use this on an entire article body yesterday and the layout was stuttering like crazy while scrolling. It's great for headlines, but keep it contained.
R: 3 / I: 0

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.
>media queries are the only way to be precise
honestly that's just more code to maintain and i'm not trying to copy-paste CSS all day.

font-size: clamp(1rem, 5vw, 2.5rem);


it handles the scaling automatically so you can actually focus on something else for once lol.
R: 3 / I: 2

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.
>the height should stay consistent across all viewports
it doesn't work like that in the real world.
R: 0 / I: 0

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.
>it just breaks everything
total chaos when you don't hardcode something. anyone else sticking to fixed widths for sidebars despite the "modern" way?
R: 0 / I: 0

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;}

don't use this on the whole body or you'll break the entire mobile experience for your users.
R: 0 / I: 0

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?
R: 2 / I: 1

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;}


does anyone actually use max-content for this or is it just asking for trouble?
R: 0 / I: 0

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 unnecessary awkward stretching on wide screens.

.label {flex: 0 1 auto;width: min-content;}
R: 0 / I: 0

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.
>the browser handles it perfectly
yeah, right. let's see if anyone can actually make a nested card layout work without using manual pixel values for every single child element.
.card-container {display: grid;grid-template-rows: subgrid;}
R: 2 / I: 0

media queries for device orientation

still seeing people use orientation: landscape in their css like it actually matters. most modern phones are huge enough that landscape on a portrait-locked screen is basically just desktop mode anyway
R: 3 / I: 2

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;}

it's much more predictable behavior for dynamic content anyway. anyone else still clinging to percent widths for everything?
R: 3 / I: 1

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 great terrible for the LCP score. Just use the aspect-ratio property to reserve that space before the asset even hits the browser.
.card-img {width: 100%;aspect-ratio: 16 / 9;object-fit: cover;}
R: 0 / I: 0

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.
R: 0 / I: 0

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.
R: 0 / I: 0

viewport units causing horizontal scroll on mobile

The 100vw width is wider than the actual viewport because of the scrollbar. I tried using 100% instead but it's leaving this weird gap on the right side when the content is long enough to scroll.
R: 0 / I: 0

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 scaling
R: 0 / I: 0

touch-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;}
R: 3 / I: 2

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.
>the width should scale naturally with the container
never trust a quick copy-paste from stack overflow
@container (max-width: 400px) {.card { width: 100%; }}

tbh it's just easier to stick to min-width and avoid the headache
R: 2 / I: 1

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;
is what we should actually be usingfor everything
but i'm stuck supporting an old safari version for a client right now. turns out svh svb is not a thing so i'm just stuck with the fallback mess. anyway if you aren't using svh yet you're basically designing for a broken viewport.
R: 0 / I: 0

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.
>set width to exactly 300px
it's literally such a rookie mistake. breaks flexbox layouts instantly and causes that annoying horizontal scroll on small screens. just use 100% or something sensible for once.

input {width: 100%;max-width: 400px;}
R: 0 / I: 0

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.
>I actually want is the theme to be "opposite" the current theme.
it seems like a lot of magic for a single 0.5kb gzip. anyone tried running this with heavy custom assets?

full read: https://daverupert.com/2026/04/inverted-light-dark/
R: 3 / I: 0

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 than contain cover because it doesn't stretch the pixels if the container happens to be tiny.

img {width: 100%;height: 100%;object-fit: scale-down;}


does anyone else avoid using contain for this?
R: 0 / I: 0

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.
> It'll just expand the whole page width and create that annoying side scroll.
I ended up having to use overflow: hidden on the parent wrapper just to keep things from breaking the layout.
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));overflow: hidden;
R: 3 / I: 0

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;}

tbh it's just lazy to keep doing the padding trick in 2024.
R: 3 / I: 1

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;}

>rem is always better for consistency

That logic falls apart once you start building complex nested components that need to scale together. Stick to em for anything related to padding or margin inside a component's internal layout.
R: 0 / I: 0

clamp for fluid typography without media queries

stop writing fifty different media queries just to scale your font size. use clamp with a viewport width unit so the text scales itself between a min and max value automatically. tbh it saves so much bloat in my stylesheets
R: 2 / I: 1

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?

article: https://www.screamingfrog.co.uk/blog/design-trends-shaping-2026/
R: 3 / I: 0

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.
>the layout keeps breaking on mobile
.card {display: flex;flex-direction: column;}

I need it to respect the flex basis without pushing the parent wide.
R: 0 / I: 0

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.
>it'll just wrap naturally if you don't overconstrain it
tbh it's basically impossible to debug when people treat flexbox like a magic box that fixes their bad sizing logic
R: 2 / I: 1

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%;}

it makes the css so hard to read when you're trying to figure out the actual height of an element. i don't get why people are still clinging to this stuff for everything. if you aren't targeting prehistoric browsers, there's no reason to deal with that math. anyone still using the padding trick for anything other than extreme edge cases?
R: 0 / I: 0

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.
>width: 300px;

that old way is such a headache once you move away from horizontal text. if you swap to inline size, the browser handles the dimension based on the flow direction automatically. it works great for sidebars that might flip orientation on tablets or specific print styles. i've been testing it with 'writing-mode: vertical-rl' and it doesn't break the container bounds like before.

.sidebar {inline-size: 250px;block-size: auto;}


it basically keeps your dimensions tied to the text flow. i still forget it exists sometimes. anyone else still relying on width for everything?
R: 0 / I: 0

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.
>it just shifts everything to the right
the spacing is totally inconsistent when the screen width hits 768px. i even tried using a media query to reset it to zero
@media (max-width: 768px) {.content {padding-left: 0;}}

but now the text is hitting the very edge of the screen and looks like a mistake. anyone else dealt with this when switching from row to column?
R: 3 / I: 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.
R: 3 / I: 1

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 fine unbearable when the rhythm is off like this.

@media (max-width: 480px) {p {letter-spacing: -0.02em;line-height: 1.2;}}


has anyone figured out a way to scale the tracking and line-height together without breaking the vertical rhythm?
R: 0 / I: 0

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;

it's driving me insane lmao
R: 0 / I: 0

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?
R: 3 / I: 1

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;}

tbh it feels like the browser is just ignoring the tracks when the parent has dynamic content. i've tried setting a fixed min-height on the rows but that's a terrible hack for a fluid layout. some weird overlap happening with the footer too.
R: 2 / I: 2

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.
>it works everywhere regardless of screen size
that's literally the point of a component-driven workflow. if you aren't using them yet, you're basically just making life harder for yourself. it's not that hard to learn. i hate seeing codebases where every single margin adjustment is tied to the global window width.
@container (min-width: 300px) {.card {padding: 2rem;}}

it's just better logic for modern layouts. what's your go-to strategy for handling component padding in dense grids?