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

Adjusting the space between elements set by justify-content space-between

Is there any way to reduce the space in justify-content:space-between?There is too much space between elements. space-around is no solution either, so I was wondering if maybe I can for example say...

View Article


My navigation and footer are extending beyond the viewport width even though...

I have tried just about everything I could find online. I have a header and footer each with two divs inside. When I set justify-content to space inbetween it pushes the right div out of the view...

View Article


Align items between two vertically stacked divs - FlexBox [duplicate]

So I have a scenario like this. On Desktop mode, this is how the divs should be stacked. The div 2, 3 and 4 are stacked beside the div containing 1 and 5..container{ display: flex;}.container div{...

View Article

When using flex wrap, how to space the next line as wide as the width of the...

When using flex wrap, I want the next line to be spaced as wide as the first element of the first line. Also, what should I do to make the height of the first element of the first line the same as that...

View Article

Image may be NSFW.
Clik here to view.

How can I create such a block using flex or grid?

I want to create a block that contains 3 main elements: a header, a list, and a chart. When the screen width drops below a certain value, I want the order of the elements to change. Here's how it...

View Article


How to center a wrap div when justify-content: left [duplicate]

I'd like to visually center .projects__content div while keeping the cards aligned on the left: screenshotI understand that a wrapped div calculates its width also including gaps when a line isn't...

View Article

Chrome / Safari not filling 100% height of flex parent

I want to have a vertical menu with a specific height.Each child must fill the height of the parent and have middle-aligned text.The number of children is random, so I have to work with dynamic...

View Article

Image may be NSFW.
Clik here to view.

Text flowing outside div in IE with angular material

I am having these issues using angular material on IE (I'm using latest version edge and same result for other versions (9,10,11)Text is flowing outside div tagThe below is snippet code for the current...

View Article


Prevent element height in flexbox container shrinking

I have a basic flexbox layout with a flex container, inside the flex container there is a menu on the top and a container for images below. The container for the images has a dynamic height, it...

View Article


I need align itens with flex-direction:column; property, but this ruins my...

I have this code (Yes, it's pretty bad):<?php include("../../controllers/config.php"); include ("../../controllers/protect.php"); if(!isset($_SESSION)){ session_start(); }?><!DOCTYPE...

View Article

Image may be NSFW.
Clik here to view.

How to continue background colors of a two-line grid with headline and...

I have a component that consists of two rows with a headline and a description. There is also an image cell that spans both rows. Both the headline and the description have a background color. The...

View Article

Shortening the text in a block, relative to the width of the block

The problem is in the text. There is a card with information with a fixed width, consisting of 3 parts (checkbox, info, status). The checkbox and status have a fixed width, and the info takes up the...

View Article

Why is flexbox ignoring my width settings? [duplicate]

I have a simple set up as below but despite setting width of the parent div of the image on the right to be 100px, or alternatively setting flex-basis to be 100px, flexbox shrinks the div (and the...

View Article


How to prevent additional whitespace when text is wrapped with grid or...

I want to display a simple icon after some text. When the text is too long the text is wrapped but the icon is pushed to the right because the grid/flex item seems to want to use all available space.I...

View Article

Image may be NSFW.
Clik here to view.

How to continue the background colors of a two-line grid with headline and...

I have a component that consists of two rows with a headline and a description. There is also an image cell that spans both rows. Both the headline and the description have a background color. The...

View Article


Image may be NSFW.
Clik here to view.

Text don't flows downward when structured in columns with Flexbox

I have the following structure and I want the list item elements go in columns but the last one, if the text overflows, must take up all the space on a second line.ul { display: flex; flex-direction:...

View Article

Image may be NSFW.
Clik here to view.

making elements appear exactly like my design in proper alignment

How do i make my elements fit within its given containers so that it fits the screen? i want my website page for the page, " green investment" look like my canva design in the first picture below. I...

View Article


Image may be NSFW.
Clik here to view.

How do I get the first item out of three to sit on a line of its own in a...

I created a flexbox for a website I am working on that contains three boxes that represent purchase options. At a small screen size, I want the first option to sit on a line by itself above the other...

View Article

Image may be NSFW.
Clik here to view.

How to float div when height change [duplicate]

I need to overide CSS in a wp plugin that show a grid of elements, so it's not possible to change structure or add classes.So, lss, the structure is like this<div class="wrapper"><div...

View Article

Component is not adjusting width property correctly

I'm struggling trying set the width to component in Angular. I'm using flex, maybe grid will help me with it, but i want to use flexbox to learn. Just to simplify, I have a page with a div that...

View Article
Browsing all 1305 articles
Browse latest View live