How can I create spacing between items in flexbox?
I am trying to place the child flexboxes in my parent flexbox to be in one row, vertically and horizontally centered, and have space between them with gap property in css but the images and embedded...
View ArticleIs there a way to change the alignment of the last element in a flex-box?...
So I have a container with display:flex. It contains elements which are centered justified. Is there a way to justify the last element to start? I tried align-self: start It didn't work..main{ border:...
View ArticleFlexbox: How can I re-order my divs and have them on multiple rows for mobile?
With flexbox, how can I?:Desktop: Div one, Div two & Div three in a row.Mobile: Div one & Div two next to each other, with Div three underneath them.Desktop`<div class="parent flex...
View ArticleWhy are my flex items overlapping with nested input and button
From my understanding, the chatFooter should have width: 100% of its parent.The chat input should be 90% of its width and the chat send button should be 10% of it.Then the input and button inside each...
View ArticleChart.js in flex element overflows instead of shrinking
I have tried setting the min-width to 0 on the wrapper div for chart.js, but the chart will grow and then not shrink back down if you drag the window around.I can't figure it out! The only thing I can...
View ArticleFixed ratio - max 'size'
Newbie needing some help.How do I keep a div, meant to fill the height of a dynamically sized container, at a fixed aspect-ratio.I have a first, full-page grid set to 1 2 6 and 2 fr rows, 1 column.I'm...
View Articletextarea and button are set to width 90% and 10% but are wrapping in flex...
I want the input box and the send button box to be beside each other in the flex row, with the input taking 90% of the width. However, the send button is wrapping under the input and I'm not sure...
View ArticleHow to make 's item shrink width?
I have this code: https://codepen.io/MH-123/pen/wvZJPPZ?editors=0100As the screen width gets smaller, I want the left 2 boxes, 1 and 2 to shrink its width but I'm not sure how to achieve that as I'm...
View ArticleHow to make flex item shrink more when full container width is taken
Original Post Below:I've reproduced a reduced problem:https://codepen.io/MH-123/pen/ExJWQWq?editors=1100Here's the code pen, read below for the issue, it remains the same. I have two divs, but flex...
View ArticleDo I need to set fixed width of flex item for flex shrink to work?
I'm very confused on why my flex-shrink isn't working until I set a fixed width or height on the item I want shrunk faster than the others.https://codepen.io/MH-123/pen/ExJWQWqYou can see here how the...
View ArticleHow to prevent Grid items to have same height [duplicate]
Grid forcing to have small div to have same height as neighbor div. But the problem is, the grid is forcing to have items same height even though i have applied h-fit. I want items to come below to...
View ArticleCentering Cloud Icon to Middle Right of Nav Border Background
I'm building a vertical navigation bar and want to add a cloud icon centered at the right border, directly on the background line.<nav><ul><li><a...
View ArticleRender data in right or left column based on the type using flex
I would like to create and html view which is populated from the array.The view has two columns and based on the element type I would like to put element in left or right column for the desktop...
View ArticleErratic padding in React Native (with Expo)
I am trying to wrap my head around a weird phenomenon. Setting paddingLeft on a React Native view (an Expo project), the padding suddenly 'jumps'.On the containter element, I set different values for...
View ArticleHow to display 3 items per row in flexbox?
I have a list and I want to display my li elements horizontally and 3 per row. I've been trying to get what I want, but no luck. Is there a solution?<div class="serv"><ul>...
View ArticleCSS formatting with flexbox and other divs [closed]
I am trying to format a webpage using CSS so that it looks like this:The idea is that the page is responsive as follows; the red and blue column (left and right) should each have a set width. The...
View ArticleHow to create different gap sizes for different items
I'm working on a project and I have to get a gap of 12px between my list items and then a gap of 24px between everything else but for some reason no matter what I try it won't allow me to make a...
View ArticlePercentage-based flex elements "jump" when transitioning the gap value
I have a container with multiple flex elements inside, separated by a gap. These elements wrap within the container, and have a percentage-based size dictating how many can appear in a single row (ie,...
View ArticleflexWrap not working for element in React Native
Here is my sceanariovar FlexWrap = React.createClass({ render:function(){ return(<View style={{flexDirection:'row'}}><Image source={{uri:profileImage}}...
View ArticleCSS flexbox max column number?
I'd like my css flexboxes to have a maximum of 3 columns when the user extends their browser window. With my current code, it flexes correctly inwards, with no minimum number of columns, but when...
View Article