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 ...
1857
votes
43
answers
2.4m
views
Font scaling based on size of container
I'm having a hard time getting my head around font scaling.
I currently have a website with a body font-size of 100%. 100% of what though? This seems to compute out at 16 pixels.
I was under the ...
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 ...
1470
votes
34
answers
903k
views
Maintain the aspect ratio of a div with CSS
I want to create a responsive div that can change its width/height as the window's width changes.
Are there any CSS rules that would allow the height to change according to the width, while ...
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 ...
457
votes
34
answers
1.4m
views
Responsive font size in CSS
I've created a site using the Zurb Foundation 3 grid. Each page has a large h1:
body {
font-size: 100%
}
/* Headers */
h1 {
font-size: 6.2em;
font-weight: 500;
}
<div class="...
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 ...
183
votes
24
answers
360k
views
How to make flutter app responsive according to different screen size?
I am facing difficulties to make it responsive according to various screen sizes. How to make it responsive?
@override
Widget build(BuildContext context) {
return new Container(
...
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 ...
638
votes
9
answers
816k
views
Height equal to dynamic width (CSS fluid layout) [duplicate]
Is it possible to set same height as width (ratio 1:1)?
Example
+----------+
| body |
| 1:3 |
| |
| +------+ |
| | div | |
| | 1:1 | |
| +------+ |
| |
| |
| ...
347
votes
14
answers
450k
views
Making button go full-width?
I want a button to take up the full width of the column, but having difficulties...
<div class="span9 btn-block">
<button class="btn btn-large btn-block btn-primary" type="button">...
406
votes
18
answers
293k
views
Does "display:none" prevent an image from loading?
Every responsive website development tutorial recommends using the display:none CSS property to hide content from loading on mobile browsers so the website loads faster. Is it true? Does display:none ...
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 ...
602
votes
10
answers
421k
views
What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?
What is the difference among col-lg-* , col-md-* and col-sm-* in Twitter Bootstrap?
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-...
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 ...
244
votes
18
answers
444k
views
How to change Bootstrap navbar collapse breakpoint
Currently when the browser width drops below 768px, the navbar changes to collapsed mode. I want to change this width to 1000px so when the browser is below 1000px the navbar changes to collapsed mode....
202
votes
20
answers
857k
views
In a bootstrap responsive page how to center a div
I need to create a responsive page using bootstrap by position a div at the centre of a page as like in the below mentioned layout.
353
votes
9
answers
570k
views
Hiding elements in responsive layout?
Looking through bootstrap it looks like they support collapsing the menubar items for smaller screens. Is there something similar for other items on the page?
For example, I have a along with nav-...
189
votes
24
answers
577k
views
Making an iframe responsive
I was reading Can You Make an iFrame Responsive?, and one of the comments/answers led me to this JSFiddle.
But when I tried to implement the HTML and CSS to fit my needs, I didn't have the same ...
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
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
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 ...
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 ...
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
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
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 ...
231
votes
19
answers
885k
views
Responsive css background images
I have a website (g-floors.eu) and I want to make the background (in css I have defined a bg-image for the content) also responsive. Unfortunately I really don't have any idea on how to do this except ...
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
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
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 ...
-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 ...
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
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 ...
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 ...
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, ...
1
vote
0
answers
92
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 ...
116
votes
11
answers
121k
views
responsive images srcset not working
I've been trying to implement the new srcset approach to responsive images, using the following HTML
<img class="swapImages"
srcset="assets/images/content/large.jpg 1200w,
...
190
votes
6
answers
225k
views
Grid of responsive squares
I'm wondering how I would go about creating a layout with responsive squares. Each square would have vertically and horizontally aligned content. The specific example is displayed below...
80
votes
26
answers
85k
views
Bootstrap 3 modal fires and causes page to shift to the left momentarily / browser scroll bar problems
I am working on a site using Bootstrap 3.1.0.
You'll notice when the modal window opens, the browser scroll bar just disappears for a split second, then comes back. It does the same when you close it....
1
vote
1
answer
135
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" ...
145
votes
12
answers
148k
views
Shrink a YouTube video to responsive width
I have a YouTube video embedded on our website and when I shrink the screen to tablet or phone sizes it stops shrinking at around 560px in width. Is this standard for YouTube videos or is there ...
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 ...
-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-...
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: ...
246
votes
12
answers
146k
views
What's the best way to make a d3.js visualisation layout responsive?
Assume I have a histogram script that builds a 960 500 svg graphic. How do I make this responsive so on resize the graphic widths and heights are dynamic?
<script>
var n = 10000, // number of ...
2
votes
3
answers
96
views
Responsive innerText
I'm trying to change the Text inside a table based on the widthof the screen.
This works fine, when i reach the breakpoint.
The Problem is, that the text does not change back to the original when i ...