Category "flexbox"

Flex React Native -- How to have content break to next line with flex when content reaches edge

I have a list of icons inside my styled container that are displayed in a flexDirection:'row' but when there is more icons than width of view, they dont break t

How to enable a scrollbar on a flex item?

I have a flexbox-based layout with two panels (top and bottom) occupying 1/3 and 2/3 of the viewport, respectively. (Actually there are more panels, but I've di

React Native - Sticky footer at the bottom of container

I'm trying to make a <View> called footer stick at the bottom of the right container. Here is a live example:https://rnplay.org/apps/G3rHqQ If I make th

How can I make my flex columns have equal height in an absolutely positioned container?

I have absolutely positioned div.container. div.wrapper inside it. and two divs as flex columns in div.wrapper. These columns have backgrounds. How can I make t

How to have each item in my flex row remain square (same width as height) without using JavaScript [duplicate]

I'd like these letters to sit in the row, each letter div with same height and width. This is my demo of the problem https://codepen.io/daniel

How to make columns equal height if siblings are hidden?

I am trying for equal height columns and implementing this on a Bootstrap carousel for a testimonials page. I want the height of all carousel items to be the sa

How to fill vertical space with flexbox?

If .right item stretch height to any size, how to make .item elements inside .left to fill vertical space equally? From: To: .container { display:

Flexbox columns in ascending order

I'm working with some items in a list: <ul> <li>Item1</li> <li>Item2</li> <li>Item3</li> <li>Item4</

Creating block buttons using Bootstrap in ReactJS

I want to create simple block buttons, that span the entire div. I am using react-bootstrap package to do this in React. Here is the code I am using:- <Conta

Flexbox child not reading height/width of parent

I was experimenting with flexbox and created this layout. I'm trying to get the middle white box that says "hey" to be 90% width/height of the parent but percen

Flexbox child not reading height/width of parent

I was experimenting with flexbox and created this layout. I'm trying to get the middle white box that says "hey" to be 90% width/height of the parent but percen

input / button elements not shrinking in a flex container

When using input and button elements inside a flex container, the flex and/or flex-grow properties don't seem to do anything. Code that demonstrates my issue.

Responsive circles in a row with flexbox

I want to draw 4 circles, being all 4 flex-items, and I need them to scale with the container they are in. I have seen some solutions where padding-bottom is us

Remove extra horizontal width from overflow wrapping with flex

Essentially, I am trying to remove/prevent the extra horizontal width created when a horizontal row of block elements has any of the block elements wrapped. Tha

How to make reactjs website responsive using material-ui

I am working on reactjs project using material-ui. Web-page is working perfect on desktop layout but when I switch layout to responsive (mobile). Than all the t

Flex gap and flex wrap with percentages

I am constructing a form where the field's width percentage is dynamically set by clients. My first approach was to create a flex container with wrapping enable

Flexbox scrollable columns

I'm struggling to make the below design work. What I want is: Fixed height header fixed width sidebar Sidebar and content to always fill down to the bottom of

how to make child in flex go full width?

I've started using flex and I love how it works. I'm using flex layout and I want the btn-group class inside dashboard-body to go full width of the parent. Ri

Minimal input width growing with value

I have a form in react app which has labels on the left side inputs for values + units on the right side All elements uses display:flex by default. I need the

Using overflow-x: scroll with justify-content: center hides the earlier blocks

I have to use the justify-content: center to center the block to come in the center of their parent div. And if the content are more than it needs to be fit in