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

2D flex layout: row wrap jointly with column shrink

in the first code snippet below I show a layout using flex-flow: row wrap which has desirable layout properties but can exceed the maximum specified height of the container. The second code snippet...

View Article


Image may be NSFW.
Clik here to view.

flex items not shrinking (tailwind css) [duplicate]

To be viewed on mobile screen size.Each image is in a div that's display flexEach image is set to a big size.The flex shrink is set on all images, but theyare not shrinking.The images are overflowing...

View Article


CSS selector within a class or id that targets only one filetype

I'm new to CSS (VERY new, third day), and have searched high and low for someone who had this same query, but I haven't found anything. So far I've tried making a class or an id for an image, and...

View Article

How can flexbox be used to re-arrange elements when responsively switching...

I have a group of form inputs that are displayed on a single line on larger viewports and collapses to a multi-line display on smaller viewports. On the single line display I want a cancel button at...

View Article

Absolute element that are inside container with relative positioning does not...

Im new to html/css and from my understanding a absolutely positioned element thats inside of a container with position relative should move with it when resizing window etc, but it does not work at...

View Article


Image may be NSFW.
Clik here to view.

CSS Flex-Box: .map results exceed div container

I cannot "adjust" the results from an API query which are mapped with .map function to fit inside a div container. I am using react.Here is my CSS:.book-results-container { max-height: 250px;...

View Article

Image may be NSFW.
Clik here to view.

Why is a nested centered flex item with image rendering full width in Firefox?

I have some nested display: flex; containers. In Chrome/Edge, the item div displays as intended, but on Firefox 110.0.1 the item takes the whole horizontal space in the wrapper (100% width).What CSS...

View Article

Image may be NSFW.
Clik here to view.

Sidebar making horizontal scroll bar appear at the bottom of the screen...

The first child div is a sidebar and the second a table:<div class="flex w-full flex-col items-start justify-start gap-6 md:flex-row"><div class="flex w-full flex-col items-start justify-start...

View Article


Image may be NSFW.
Clik here to view.

Adjusting elements in a flexbox doesn't work properly

I'm trying to adjust the filter dropdowns within the flexbox container. But for some reason the first two columns in the first row always are shifted. It's driving me crazy. I also tried using gap...

View Article


Image may be NSFW.
Clik here to view.

Using flexbox to change layout at different breakpoints

I'm trying to arrange a series of elements in a different layout for "mobile" screens vs large screens. Basically, on mobile screens I want a title to span the entire width at the top, centered....

View Article

Image may be NSFW.
Clik here to view.

Prevent first Flexbox child from affecting the height of second Flexbox child

Currently, I'm working on a project that seems to require a lot of nested flexboxes on the HTML/CSS side. Up until this point I've worked with one flexbox parent and a set of nested flexbox children...

View Article

Image may be NSFW.
Clik here to view.

Switch flexbox containers on desktop and mobile with tailwind

I want to change the display and order of three components on screen resize. I've tried a few things with flexbox, but I'm not sure it's possible.Essentially I want the components on mobile to appear...

View Article

How to start a new column in flex column wrap layout

I want my data to be arranged in columns (top to bottom, left to right) and every heading inside the data should start a new column. There are three constraints:Must use flex (I need to use a feature...

View Article


Image may be NSFW.
Clik here to view.

Dash: how to get a flexbox within a flexbox to auto-adjust

I am creating a Dash layout with flexboxes. They are quite useful. However, I am having trouble resizing charts to fill the space equal to a Dash card, because I am not aware of the default size of the...

View Article

Image may be NSFW.
Clik here to view.

Dash: getting graphs to fill up the height of parent container

I am creating a Dash layout with flexboxes. They are quite useful. However, I am having trouble resizing charts to fill the space equal to a Dash card, because I am not aware of the default size of the...

View Article


Framer Motion: flexbox with justify-content: space-around or gap causes...

I am trying to achieve a smooth transition in a flexbox when an element is removed.It seems that when a flexbox uses gap or justify-content property, the space around the removed element disappears...

View Article

Image may be NSFW.
Clik here to view.

Scrolling a flexbox with overflowing content

Here's the code I'm using to achieve the above layout:.header { height: 50px;}.body { position: absolute; top: 50px; right: 0; bottom: 0; left: 0; display: flex;}.sidebar { width: 140px;}.main { flex:...

View Article


Bootstrap 4 vertical align text won't center on card

Trying to vertically align the text center in the following card:<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"...

View Article

How to make two inner divs vertically grow together while outer div handles...

I have an outer div that has a max-height and overflow-y: auto.Inside it are two divs side by side that may vertically due to the content inside either one of them.The left div has a grey background...

View Article

Image may be NSFW.
Clik here to view.

How to flex items with different height without gaps [duplicate]

I'm trying to create reminders / notes, and I'm having trouble setting the items inside the flex container to ignore height differences in the rows. I want them to fit the space without any gaps...

View Article
Browsing all 1305 articles
Browse latest View live


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