17,457 questions
-2
votes
0
answers
24
views
Optimal layout of nested wrapping blocks [duplicate]
My layout consists of blocks, each block contains images. Blocks as well as images should wrap if needed to take up the least amount of space possible. It needs to be responsive and fully dynamic.
I ...
-1
votes
0
answers
36
views
CSS Grid Dashboard: repeat(auto-fit, minmax(300px, 1fr)) Unevenly Spacing Tall vs. Short Cards on Resize? [duplicate]
I'm building an analytics dashboard with variable-height cards (e.g., text metrics vs. embedded charts). Using CSS Grid's auto-fit for responsiveness works on desktop, but resizing causes uneven gaps ...
Advice
0
votes
0
replies
53
views
How does a front-end dev think about different users' devices/settings without being overwhelmed?
My professional experience in tech has mostly been on the back-end, but I've been trying to learn more about front-end technologies like React so that I have more tools at my disposal. Broadly ...
1
vote
1
answer
79
views
Hamburger-menu inactive
I have created my hamburger icon with the aid of css but when i tap it it doesnt drop down the navlinks , rather the nav-links cover the page when the screen reduces. As im a beginner in js i think ...
0
votes
1
answer
69
views
React TailwindCSS only rendering in mobile view in production
I have created a site using React with TailwindCSS v4.1.16.
When running the site in dev mode (npm run dev), the responsive design is working and I can see the changing formats when I resize my screen ...
0
votes
0
answers
41
views
Stripe Embedded Checkout Not Responsive in React Native Web (Expo)
I'm implementing Stripe's Embedded Checkout in a React Native app using Expo with web support. The checkout form renders successfully, but the input fields are not responsive - they don't scale or ...
0
votes
0
answers
26
views
My Widget does not work properly Because of different grid sizes
I used a custom grid structure. Not only it doesn't work as I want on different screen sizes, but also the widget I defined externally does not fit into different grid structures. Here index.jsx:
this ...
2
votes
1
answer
91
views
Why is Tailwind CSS breaking my existing CSS Code? [duplicate]
Summary: Existing CSS code for setting an HTML element's width to 100% of viewport width fails when tailwindcss is added. For an element who's display is set to display: flex; the children being ...
0
votes
1
answer
89
views
Flutter: How to hide bottom navigation bar on specific pages for mobile only while keeping sidebar on desktop?
I'm building a Flutter app that runs on both mobile and desktop platforms, and I'm struggling with implementing responsive navigation that behaves differently based on the platform.
Current Setup
// ...
1
vote
0
answers
158
views
How to make min-height scale with clamp() font-size to avoid layout shift?
I have this CSS:
div#appointmentsCont {
width: 80%;
max-width: 320px;
min-width: 554.5px;
}
div#appointmentsCont h3 {
font-size: clamp(19px, 3vw, 24px);
}
The <h3> is inside ...
1
vote
0
answers
91
views
MJML inconsistent section width in Outlook on Windows
I'm developing an email template with MJML and I'm trying to resolve some inconsistencies in Outlook desktop on Windows.
My understanding is that MJML generates conditional wrapper tables with a fixed ...
1
vote
1
answer
85
views
Align a shaped svg vector image exactly to the right of a div to make it part of the background
I’m working on a design where I have an S-shaped SVG curve as part of a background behind a containing text and buttons. You can see in my screenshots what I’m trying to achieve:
First image: This is ...
1
vote
1
answer
72
views
Why does grid-template-areas break when combining minmax() and auto-fit in CSS Grid? [closed]
I’m trying to create a responsive layout using CSS Grid.
The grid should have a header, main content, and a footer. I’m using grid-template-areas combined with auto-fit and minmax() to make the layout ...
1
vote
0
answers
65
views
Flutter responsive layout not sizing properly
I'm working on an application in flutter, and am having a hard time implementing my UI designers figma design in flutter, using a responsive layout. The designer came up with this:
And I was able ...
0
votes
1
answer
125
views
Responsive sidebar inside a floating / full-screen chat widget – HTML, CSS, JS
I’m building a floating chat widget that can be
Minimized (small)
size: 400 × 600 px (bottom-right corner)
sidebar is collapsed (≈ 30 px) and can be toggled open to 100%
when the user closes / re-...
0
votes
0
answers
56
views
How to virtualize M×N Kanban board with cell-level API calls and dynamic heights?
I'm implementing a complex Kanban board with virtualization and facing several challenges. The board has M rows (sections) and N columns (statuses), where each cell makes its own API call to fetch ...
0
votes
0
answers
19
views
Issues with responsiveness on varying devices of the same max-width
So I'm working with Next.js building an e-commerce store. It's my first fullstack project so it's kinda a big deal for me.
Problem is, after i did the responsiveness for mobile screens (max-width: ...
1
vote
0
answers
98
views
Stacked backdrop-filter blur divs showing gaps/artifacts on different screen sizes
I’m creating a glass-morphism progress bar made of 10 stacked slices, each with its own
backdrop-filter: blur().
It renders perfectly on desktop Chrome/Edge, but on high-DPR mobile
screens (Safari iOS ...
0
votes
1
answer
75
views
JQuery Calendar Date Picker - Show Calendar without Clicking
On our website we currently have the Jquery date picker implemented, but my boss would like it if the calendar could just be active the whole time without the user needing to click on it to get the ...
-1
votes
1
answer
122
views
How can I make a responsive taskbar like Windows that fits unlimited app buttons without overflowing in HTML/CSS?
I am building a desktop-like interface in HTML/CSS and trying to recreate a Windows-style taskbar.
I want the taskbar to behave like in Windows:
When many windows/apps are open, the taskbar fills up ...
1
vote
0
answers
62
views
WordPress CSS media queries work on desktop resize but not on real mobile devices [closed]
I'm building a custom WordPress theme and trying to apply some mobile-specific CSS using media queries. Here's an example of what I'm using:
@media (max-width: 700px) {
/* mobile styles */
...
0
votes
1
answer
80
views
Change order of a javafx grid based on screen size
I'm developing a javafx application for a university project.
However, I realized that I can't create truly responsive applications without being able to change the order of my elements on the scene.
...
0
votes
1
answer
262
views
How can I add a responsive toggle button for a mobile nav menu using JavaScript?
I’m working on a CSS lab task where we had to make a webpage responsive using media queries. One of the bonus challenges was to add a toggle button for the navigation menu on mobile and I’ve been ...
0
votes
1
answer
92
views
Design a responsive CSS class for a <div> containing several SVGs to scale proportionally
The banner contains a logo image and a search box. For viewports > 800px wide, the logo should be left-justified and the search box should be right-justified within the banner. For narrower ...
2
votes
0
answers
76
views
How to allow a slider item to overflow only from the top on hover, but hide overflow on the sides in a swiper slider? [closed]
Question:
I’m working with Swiper.js slider and have a hover effect on each slide where the slide grows in size and moves upward, overflowing outside the main slider container.
My goal is:
On hover, ...
0
votes
1
answer
125
views
How do I resize banners to fit nicely on mobile?
I'm working on my personal website called stellarfacts.com, I've been building it since September.
I use two different types of banners, image and video banners. They look good on desktop, but on ...
0
votes
1
answer
62
views
How to make my Fake OS website more responsive and make the elements maintain their size proportions as the window is resized?
I’ve searched quite a bit, but none of the other resources matched the specific CSS structure I have. No matter what I tried, my layout never became responsive. I’m very new to CSS and still learning ...
0
votes
1
answer
43
views
React MUI Layout: Burger Button in App Toolbar Doesn't Toggle SideNavBar/Drawer when UI not displayed on small devices
I'm struggling a bit about this code below describing the basic layout of a React / Material UI layout with a toolbar and a sidenavbar.
The burger button in the toolbar currently toggles the drawer ...
0
votes
2
answers
89
views
Using CSS, how can I gradually reduce horizontal padding on very narrow screens?
I'm using the following CSS to restrict the content area width of a website to between 320px and 720px:
body {
min-width: 368px;
max-width: 768px;
padding-left: 24px;
padding-right: ...
1
vote
1
answer
287
views
Textarea Scrolling Issue on Mobile Devices with Keyboard Open
I've built a simple web application using React, and I'm running into an issue with a <textarea> input box. The textarea is set up to allow scrolling when the content overflows, which works fine ...
2
votes
1
answer
59
views
Media query skipping a pixel
I wrote this code in CSS:
/* Extra small devices (phones, 480px and down) */
@media only screen and (max-width: 480px) {
body {
background-color: red;
}
}
/* Small devices (portrait ...
-2
votes
1
answer
58
views
How can I resize the entirety of a webpage's content if it exceeds the width of the browser window? (without changing the item positioning at all))
Probably not the best way to ask what I'm asking but I don't really know how else to say it.
I have this recreation of the sega.com website from 1996. I tried to remake the layout without using tables ...
2
votes
2
answers
73
views
How to make a right-slanted div with rounded corners?
Is there a way to make slanted div on the right side and have rounded corners ?
I'm a bit stubborn, so I spent way too much time on this, trying different ways. the following is based on a question ...
0
votes
0
answers
162
views
I'm building a React Native app using Expo I'm struggling to make the UI consistent & responsive across different device sizes and screen resolutions
Components appear well-sized on some devices but overflow or appear too small/large on others.
Text sizes and spacing often look unbalanced on smaller vs. larger phones.
react-native-responsive-...
-1
votes
1
answer
44
views
How to adapt it to responsive without breaking the design [closed]
I have the following design:
.cuadro-valores {
z-index:10;
position:relative;
background-blend-mode: multiply;
}
.grid {
display: grid;
grid-template-columns: 50px 550px;
grid-template-...
-1
votes
2
answers
48
views
Can I combine minmax() with responsive length property in CSS? [duplicate]
I had the idea to use responsive font-size in CSS, so that the font size would depend on the viewport width, but be limited for minimum and maximum size, like this:
@property --font-size-norm { ...
0
votes
0
answers
87
views
How to make PrimeNG Carousel responsive based on container width instead of window width?
I'm using the PrimeNG Carousel component in my Angular application. I've configured the responsiveOptions to adjust the number of visible items based on screen size. However, I've noticed that the ...
0
votes
1
answer
27
views
_hooks_useScreenSize__WEBPACK_IMPORTED_MODULE_4__.default) is not a function
I'm following a NextJs Tailwind tutorial and from what I see, I have the exact same code but it's erroring on the useScreenSize() hook.
Here's the hook:
"use client";
import { useEffect, useState } ...
0
votes
2
answers
46
views
HTML elements do not span grid template areas properly (they span only one cell)
It is my first attempt us use responsive design using grid templates, following some example code I found.
However my elements just use one grid cell, even if multiple contiguous cells use the same ...
1
vote
2
answers
142
views
@angular/flex-layout not working after upgrading Angular 7 to 18
I upgraded my Angular app from version 7 to 18. After the upgrade, the @angular/flex-layout package stopped working. My app is no longer responsive — all fxLayout, fxFlex, etc., have no effect.
I ...
0
votes
1
answer
124
views
How to keep page content horizontally centered when sidebar expands/collapses in Next.js layout?
I have a Next.js application with a collapsible sidebar and a shared layout. When the sidebar expands or collapses, I want the main content of my pages to always remain horizontally centered within ...
1
vote
1
answer
134
views
How to set viewport width for print media?
I've been doing some testing with print CSS, and getting wildly different results in different browsers. Considering the example below, Safari prints "This viewport is more than 1200px" ...
0
votes
0
answers
47
views
Scrolling not complete on mobile
I have a couple of projects working with scroll based animations. But whenever I deploy them and view them on a mobile device, the scroll never reaches full. It's always a couple of pixels short and ...
1
vote
1
answer
74
views
Can't scroll down on mobile after hero section loads — content visible but not accessible
Hey all — I'm building a custom website and I'm running into a weird issue on mobile devices (tested on iPhone and Android).
Issue
Page loads fine — navbar and hero section appear immediately
After ...
0
votes
1
answer
69
views
Responsive Image Flow Horizontal Gallery
I'm working on attempting to replicate this gallery: https://preview.themeforest.net/item/core-minimalist-photography-portfolio/full_screen_preview/240185
I have some code that works for me on my ...
0
votes
0
answers
25
views
How do I dynamically calculate the number of words that fit on a screen in React Native?
I'm building a book reader in React Native where the content is stored in segments (e.g., every 100 words) in a database. However, device resolutions and orientations vary so much that hardcoding a ...
1
vote
2
answers
101
views
How can I split members of a subgrid when reordering (due to screen size)
I'm creating a web UI where I have one large area of main information, and three sidebar areas. Two of the sidebars are narrow, and one is wider. On a wide enough display, I want to show them like ...
-1
votes
1
answer
51
views
How to overlay Video and iceberg image correctly with responsive scaling?
I am working on a hero section where I need to:
Have a background video covering the full screen.
Overlay an iceberg image on top of the video, positioned properly at the bottom.
Ensure text is ...
2
votes
2
answers
57
views
css flex-wrap, but vertically?
5 children elements
equal widths
varying heights
I would like to do EXACTLY what flex wrap row does, but VERTICALLY.
.container {
display: flex;
flex-wrap: wrap;
flex-direction: column;
...
0
votes
0
answers
81
views
Flutter Web Responsive Issue: Background Appears Above Keyboard on Mobile
I'm developing a Flutter web application and testing it on my phone. When I open the keyboard, some parts of the background appear above the keyboard, instead of keeping the screen widgets in place. ...