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

Image may be NSFW.
Clik here to view.

how to arrange containers of different sizes in div? [duplicate]

I am trying to arrange containers having fixed width but different heights inside a div. I tried using flexbox and the result is as followsThe height of any particular row is governed by item having...

View Article


CSS Flexbox and gap properties

\<div class="container-7"\>\<div class=" box box1"\>\</div\>\<div class="box box1"\>\</div\>\<div class="box box1"\>\</div\>\<div class="box...

View Article


Image may be NSFW.
Clik here to view.

CSS display flex space between not working

Just to start, I have to admit I'm pretty amateur to flexbox and CSS. So, sorry for any naive mistakes.I have the following code:@import...

View Article

How to use Flex-wrap to wrap the 6th box to next line

My goal is I want my boxes in the first line are 5 rows and the 6th box will go to the next row? Can you show me how to do it?.container { display: flex; gap: 10px; flex-wrap: wrap; padding: 10px;}.box...

View Article

How do I control the order in which flexbox items grow/shrink?

I have a flex container with three children. Each child has a min and max width and I would like to have them grow/shrink in a specific order. So, as the window width decreases, Item1 should shrink to...

View Article


Center the content inside a column in Bootstrap

I Need help to fix the problem, I need to center the content inside the column in bootstrap4, please find my code below<div class="container"><div class="row justify-content-center"><div...

View Article

Image may be NSFW.
Clik here to view.

What can we do get a layout like this using just flex?

I want a layout like this, how can I write the CSS code?My HTML (I have moved my CSS in styles in HTML):<div class="container" style={{ display: "flex", flexWrap: "wrap" }}><div class="orange"...

View Article

How would I position my elements as such on a website while maintaining its...

I have been trying to create a website using HTML, and CSS that would not contain a more "linear" format and would instead have carousels that rotate items that would appear in seemingly random...

View Article


Image may be NSFW.
Clik here to view.

Preventing flexbox images resizing beyond boundaries of box or browser window

I am trying to lay out pairs of images horizontally next to one another such such that:both images take up roughly the same area regardless of their relative aspect ratioseach image fits vertically...

View Article


Image may be NSFW.
Clik here to view.

styling layout for a react app using react-bootstrap

I am working on my frontend UI. I am using react-bootstrap 0.33.1 which supportsbootstrap v3.3.x.This is how my UI looks like right now.But, this is not something that I am expecting. I want to achieve...

View Article

Overflow not working as expected on absolutely positioned item in flex column

I have an absolutely positioned element I'd like to overflow it's containing elements horizontally. This works as expected until I add change any of it's containing elements'overflow properties to...

View Article

Is there really no way to wrap text around an image in flexbox?

Normally when you have a block of text you can just float the image left or right to wrap the text around it, but in flexbox floats do not work and I am struggling to find a solution.Bootstrap 4 is...

View Article

React Native position:"absolute" not working

I am newbie to react-native, I was learning it from youtube but in there the code block used to align the logo-image on top of the screen works, however for me the code didn't work. The exact timestamp...

View Article


Input controls overflowing flex container in Firefox

I'm having issues on Firefox (fine in Chrome) with a flexbox input group - the select input is pushing the text input out of the container.I've extracted some of the markup and replicated the relevant...

View Article

Navbar links are aligning to the middle, rather than to far left of flexbox....

I'm designing a website that, for stylistic purposes, is mainly contained in a 1000px wide box in the center of the screen. The navbar near the top of the box is tending towards a middle alignment...

View Article


Image may be NSFW.
Clik here to view.

I want the body to use the maximum height of the screen [duplicate]

My HTML has a header div and a body div.I want the body div to grow to the maximum height of the screen.If I set the height to 100vh, it worked but ignored the header div height.So a scrollbar appears....

View Article

Set minimum flexbox height to content's height

When I resize the window, it can happen that the <input> elements protrude its parent <div>.Is there a way how I can assure that:.split-content minimum height equals it's content +...

View Article


Image may be NSFW.
Clik here to view.

how can I align an image with text in different fonts so that the last text...

I'm having a problem aligning the text with the icon, because the our-numbers-value class has a larger font-size than the our-numbers-text class, so the div ends up growing and the image is aligned...

View Article

How can I get my hero section to look like this?

HeroI'm new to coding and trying to build a portfolio page.What would be the best way code the hero section to look like this?Right now my code looks like this, is this the best way to build this...

View Article

Flexbox nested div overflow

I have a div that contains a variable number of elements that should scroll when content overflows the remaining height of the screen, but when the content grows to require a scroll, the height of the...

View Article
Browsing all 1305 articles
Browse latest View live


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