Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Browsing all 1305 articles
Browse latest View live

Checkboxes in CSS Grid/Flexbox Layout Have Inconsistent Sizes (rendering)

I’m trying to create a layout with checkboxes using CSS Grid and Flexbox, but the checkboxes are rendering with inconsistent sizes in Chrome or blurry rendering in Firefox. I would like to understand...

View Article


Change Flex Order on mobile compared to desktop

So I am having issues trying to swap divs 1 and 2 around on mobile.Mobile the order should be divs 1, 2 and 3 stacked in that order.Then above 768px, the order needs to be div 2 on the left set at 30%...

View Article


How to make two columns?

CLICK HERE TO SEE WHAT IT LOOKS LIKE RIGHT NOW!!!CLICK HERE TO SEE MY GOAL-ish(had to hide my name and face for privacy names in the picture and censor my name in the html)1. So basically I was...

View Article

How to change Flex Order on mobile compared to desktop? [duplicate]

So I am having issues trying to swap divs 1 and 2 around on mobile.Mobile the order should be divs 1, 2 and 3 stacked in that order.Then above 768px, the order needs to be div 2 on the left set at 30%...

View Article

Image may be NSFW.
Clik here to view.

Flexbox overflows instead of scrolling [duplicate]

What I need :an app that takes the entire screen (height: 100vh)a navigation bar at the top2 boxes aside that take the remaining of the heightif one content is too small, the box still takes the...

View Article


How To Style Password Show/Hide Button In Login Page

I am making a login page with Vue/Nuxt 3. I have made a basic form, but am having trouble with the show/hide password button. The main form is display: flex; and flex-direction: column;, which works...

View Article

Image may be NSFW.
Clik here to view.

If justify-content: stretch is same as justify-content: flex-start/start, why...

I was looking for a suggestion that shall we start using justify-content: flex-start/start instead of using justify-content: stretch in the long run. If we justify-content: stretch is same as...

View Article

Bootstrap / CSS footer not staying at bottom

I am facing an issue with my website layout where the footer does not stay at the bottom of the screen on pages with little content. It stays halfway up the page instead. However, when there’s enough...

View Article


Image may be NSFW.
Clik here to view.

CSS Flexbox: Wrapped Children Do Not Expand Parent Width in Firefox & Safari...

I’m facing an interesting CSS issue and was hoping someone might have a solution.I have a flex container with multiple “parent” elements, each containing “child” elements. The setup is as follows:Each...

View Article


Why does having an extra wrapper with display flex change height percentage...

I'd like to understand why the green div with cyan border behaves like so in these cases.Without extra wrapper:.wrapper { display: flex; border: solid 2px black;}.red { width: 25px; height: 25px;...

View Article

Image may be NSFW.
Clik here to view.

Height 100% not working on flex-box>flex-1?

I have a problem with making my element filling the height of flex-box children. As you can see in the image, h-full of Tailwind is not working (width x 0), when the parents, is having a good height of...

View Article

Why is my CSS Flexbox layout not aligning items correctly? [closed]

I am trying to create a simple Flexbox layout to center items horizontally and vertically inside a <div>. However, my CSS is not aligning the items as expected.Problem Details:I want to center a...

View Article

CSS flexbox vertically/horizontally center image WITHOUT explicitely defining...

With only the parent div and the child img elements as demonstrated below how do I vertically and horizontally center the img element while explicitly not defining the height of the parent div?<div...

View Article


Issue in Sidebar in tailwind react

I am getting issue in tailwindCss actually the issue is that content is hiding behind the sidebar I have a AdminLayout which acts as a common layout in application that contains Sidebar Header and...

View Article

Image may be NSFW.
Clik here to view.

How to Fix First and Last Column in react-virtualized List?

I am working with react-virtualized and have a custom header along with a long list. I was able to fix (freeze) the first and last columns in the header while scrolling horizontally, but I am unable to...

View Article


Why is my content out of scrollable area when window size gets reduced?

In my page layout with a fixed header area and main content (split between a sidebar and main content area) everything lines up and if I add dummy content to force a scroll then my header stays at the...

View Article

Image may be NSFW.
Clik here to view.

Format flex items based on wrap state

I am using Flexbox for following layout and willing to switch to CSS Grid or plain old floats if I can achieve my goal. This questions is very similar these two: detect flex wrap and select an item...

View Article


Image may be NSFW.
Clik here to view.

flex box: wrap & optimize container size [duplicate]

I am working on a control generated in React (HeroUI). The control gets generated as a flexdiv and I am trying to minimize its width when items are being wrapped into several rows.As MRE, I created...

View Article

Image may be NSFW.
Clik here to view.

Is it possible to do something like "row-reverse" and "column-reverse"...

In an application I'm writing, I'm trying to create a 2D grid system that can be expanded indefinitely in any direction. For those of you familiar with LabVIEW, I'm trying to emulate the ability that...

View Article

React-Native: Avoid Text Wrapping

I have the title of a song and its duration showing in one line. The song title needs to show an ellipsis but the duration should never wrap or show ellipsis. I've tried several combinations but fail...

View Article
Browsing all 1305 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>