CSS Flexbox justify-content Space Between Only Some Items? [duplicate]
I have a div where I want to apply justify-content: space-between but have the first 2 or last 2 (or whatever combination I need) of items "stick together".For example if I have a Navigation menu, the...
View ArticleWhich Methods/How to replicate this "Price Compare" responsive card layout?
plan comparison desktop:plan comparison mobile:Hi,I am looking for some ideas on ways to design this section of the layout.This section is both in desktop version and mobile (pictures above)It price...
View ArticleA Bootstrap row with a fixed max-height still takes up space when overflown
I have a div with colors - a Bootstrap row with lots of cols. I've set it a fixed max-height. Even though it looks like it's scrollable, the row with cols still takes up space and expands far beyond...
View ArticlePHP variables changing position of HTML headings [closed]
I'm creating form with choosing buttons:But when I checked some options all the headings are going up and down:PHP:echo '<div class="flex-container flex-response" id="responseform" title="Kliknij,...
View ArticleDiv does not have the expected width based on percentage of container...
I have a .section-offerings section in my html file, inside I have 2 divs that will be rows in a table of features about a product. Each row is supposed to have an icon and a description of the...
View ArticleHow to specify line breaks in a multi-line flexbox layout?
Is there a way to make a line break in multiple line flexbox?For example to break after each 3rd item in this CodePen..container { background: tomato; display: flex; flex-flow: row wrap; align-content:...
View ArticleDifference in flexbox overflow behavior between React and React Native
I'm new to React Native, so I apologize if this is a simple question. I'm trying to achieve a flex layout containing two child flex containers with their own content, where if one child's content...
View ArticleWhy does flexbox stretch my image rather than retaining aspect ratio?
Flexbox has this behaviour where it stretches images to their natural height. In other words, if I have a flexbox container with a child image, and I resize the width of that image, the height doesn't...
View ArticleText selection on flex reverse-column child happened in wrong direction
I'm trying to select text in flex reverse-column container but actual selection is wrong. Browser attempts to make selection from end of the element, that leads to wrong selection.Example,<div...
View ArticleAdd a new row of the same HTML macro flex-container
I am new to this. Trying to create a form where one section you tab through and input the information. Then add a row to add the same information (Contacts) right below. I can add the button. But am...
View Articleproblem in the body when the keyboard is displayed on the cell phone
I am a recent front-end developer, I am working on a chat page that will be seen in browsers and on mobile devices. The page has an issue related to the on-screen keyboard appearing when a user wants...
View ArticleCan it flexbox? Chat window with input at the bottom, chats scrolling up
Seems like it should be possible with flexbox, but I can't figure it out.http://codepen.io/MichaelJCole/pen/NGBVGeGoals:textarea (for typeing in messages) stays at the bottom the whole time.chats start...
View ArticleTailwind/CSS: Why my div is not fitting the width of the image but expanding...
My div (highlighted with background yellow) is expanding horizontally i.e., it's width is increasing. I think it is increasing to the full width of the image i.e., 800px + padding. How can I make sure...
View ArticleFlexbox makes my text purple, why i can`t change it? [duplicate]
The problem is whatever i`m trying to do, flexbox makes my text purple in button form. When i do button without flexbox everything goes perfect, white text.Purple color text in buttonHTML CODE BELOW...
View ArticleReact Native make children fill in empty space evenly
I have a container that has a scrollview component nested inside that is also a container. Inside the scrollview container, I am looping through data and then trying to make the children be 2 items per...
View ArticleAchieving synchronized scroll for dual-column layout with CSS
I have a two-column layout using CSS with a sticky effect, similar to the example provided below. However, the scrolling behaviour differs slightly from what I need.Currently, the blue column starts...
View ArticleA h2 title overlaps with the text under it when the h2 title wrap
How it looks when title isn't wrapping(all good)When the screen is thinner and the title wrapsAs you can see it clashes with the h3 title ("S2")I am quite new to coding, currently learning. There...
View Articlecdk-virtual-scroll-viewport usage with angular/flex-layout (row and wrap)
I would like to use virtual scrolling with flexlayout - e.g. the following code should work with virtual scrolling:<div fxLayout="row wrap" fxLayoutAlign="start center"><div *ngFor="let size...
View ArticleHow to make flex-direction column containing wide content respect flex-grow...
I'm building a carousel inside a flex container which has flex-direction: column. I thought this would be trivial, and it probably is. I've built carousels by hand before but not in this exact...
View ArticleCan't get vertical scroll to sync with all rows while horizontally scrolling...
I've set up my DIVs in a layout I desire. The horizontal scroll works as expected (left part fixed, right part scrollable). The issue I noticed is that the vertical scroll only affects the...
View Article