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

Image may be NSFW.
Clik here to view.

Make header sections in a div the same height [duplicate]

I have 3 columns where i want the divs to be the same height, i also would like to have the header sections inside those divs to be the same height no matter the content inside of it. I am not sure if...

View Article


Proper alignment of images and text within individual containers

I am trying to align an image closer to its right container border while also trying to align a text closer to the left of its own container border but still give spacing between the two elements...

View Article


Image may be NSFW.
Clik here to view.

How can I reverse all the elements of a flexbox in CSS?

I'm trying to sort elements of a flexbox from the last to the first.I tried using flex-direction: row-reverse; but it only reverses the lines, not the whole container.The result:It sorts like...

View Article

CSS Layout: Fixed header/footer and sub-header within content

I am working on a web application and want to have the following layout:<div class="wrapper"> --header--<div class="header"></div> --body--<div class="content"> --header within...

View Article

flex-items have unqeal width even thought flex: 1 is set [duplicate]

all i have flex-cntaienr with two items. But even though I use flex: 1 for them and besides the fact box-sizing is set to border-box, they do have the same width. This is caused by the second element...

View Article


Inconsistent layout between mobile and desktop versions

I created my first web app and I'm having trouble displaying it. From a desktop PC everything is fine, but from both a tablet and a phone I find everything out of place, what could be the problem? What...

View Article

Image may be NSFW.
Clik here to view.

justify-content and flex-grow being ignored

I'm having a problem with CSS flexbox. I had a working code yesterday yet today when I tested my solution it stopped working for some reason. It has to do with flexbox.This is the result I want to...

View Article

How To Have Div Scroll When Out-Of-Bounds, While Using Flex?

I have a main div, which is a child and is centered by a content div. This content div is siblings with a header div and footer div, which are children of a wrapper div. The content div is made to grow...

View Article


Centering a loading spinner

I want to ensure my loading spinner is always centered when used, in a table, a button, ....th-loader { .progress { top: calc(50% - (var(--loading-indicator-border)/2)); left: calc(50% -...

View Article


Column headers with equal height based on dynamic content [duplicate]

enter image description hereI need a layout where there are 3 columns with each containing a header section and content section. The headers of all 3 column has to be equal based on dynamic content...

View Article

should i use grid? or what can you recommend for actions like this?

im not sure what to use in that caseI want to have resumé (img) on the left, the biographie (p) with a wide width in the middle and on the right in the same area a input (email), texterea and button. i...

View Article

Flex Container cutting of item, which increases height on focus using outline

I am using following scss:to have a row of buttons.Working good. However in case of focus the single buttons size increases by a few pixels and it looks like parent flex container .form-buttons does...

View Article

Center flex items on wrap

I have set up a flexbox with two items which should be on the left and right on a normal screen.If the screen is not big enough to show both next to each other, it should wrap but then they should be...

View Article


Image may be NSFW.
Clik here to view.

Vertical align and center of container using flex-box [duplicate]

How to fit only one item in the center of the container using flex-box?I can use the justify-content, but it works for all items.I need to apply justify-content only in one item, probably using...

View Article

How can I achieve this using html? [closed]

I have been trying to bring out this design using html but it's not working. I'm a beginner.Please assist me 🙏 it's an assignment and I have to submit before this week ends.Most especially the...

View Article


Image may be NSFW.
Clik here to view.

How to stop flex-box from pushing other elements out of the container?

It's a bit hard to explain, but consider a flex header with a menu and then something else on the right which is fixed width. As the window size shrinks in width, there is less room for the menu....

View Article

Material UI Grid and CSS Flex-Box causing the child to overflow the parent...

The following is the problemContext: I have 5 components that I need to display such that 3 components are horizontally aligned followed by 4 and 5 which are vertically aligned.All these components...

View Article


Reestablish two-column layout via CSS [closed]

I had created a clean and functioning two-column layout on a webpage. Overnight, for reasons I am since hours not able to find out, the right column (blue background area) is now displayed underneath...

View Article

PrimeVue Menubar CSS question - align right but with a dynamically changing...

I have a requirement where I want to use the PrimeVue Menubar component but modify such that the menu items (links) are aligned to the right of the menu and I need to pass in a button called Versions...

View Article

Wrap when equal-width containers get too small to contain their content

I have a row flexbox with these requirements:The flexbox has two child flex itemsThe flex items ALWAYS have the same widthAs soon as the container becomes small enough that ANY of the flex items cannot...

View Article
Browsing all 1519 articles
Browse latest View live


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