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

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 Article


Image may be NSFW.
Clik here to view.

Which 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 Article


Image may be NSFW.
Clik here to view.

A 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 Article

Image may be NSFW.
Clik here to view.

PHP 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 Article

Div 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 Article


How 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 Article

Difference 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 Article

Why 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 Article


Image may be NSFW.
Clik here to view.

Text 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 Article


Add 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 Article

problem 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 Article

Can 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 Article

Tailwind/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 Article


Flexbox 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 Article

Image may be NSFW.
Clik here to view.

React 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 Article


Achieving 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 Article

A 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 Article


cdk-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 Article

How 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 Article

Can'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
Browsing all 1450 articles
Browse latest View live


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