Linked Questions
563 questions linked to/from In CSS Flexbox, why are there no "justify-items" and "justify-self" properties?
435
votes
6
answers
315k
views
How to justify a single flexbox item (override justify-content) [duplicate]
You can override align-items with align-self for a flex item.
I am looking for a way to override justify-content for a flex item.
If you had a flexbox container with justify-content:flex-end, but you ...
158
votes
1
answer
163k
views
Difference between justify-content vs align-items? [duplicate]
I'm having a really hard time understanding what's the difference? From my research it seems like justify-content can do... space-between and space-around, while align-items can do... stretch, ...
123
votes
1
answer
159k
views
flexbox justify-self: flex-end not working? [duplicate]
I have a layout where sometimes the 'left' item is missing. In such cases, I still want the 'right' item to be right-aligned.
I thought I could do this with justify-self but that doesn't appear to be ...
41
votes
2
answers
44k
views
align-self: flex-end not moving item to bottom [duplicate]
As you can see here: JSFiddle
I want author div to be at the bottom of his parent container. I tried with align-self: flex-end; but it's not working. What am I doing wrong?
.flexbox {
...
16
votes
2
answers
33k
views
Flexbox align items horizontally [duplicate]
Is there a method to align child items in that way: [i][i]______[i][i][i], regardless how many items are in each of the groups?
5
votes
1
answer
36k
views
CSS3 FLEXBOX, left and right floating items [duplicate]
<div class="flex-container">
<div class="flex-item" style='width:15%'>flex item 1</div>
<div class="flex-item" style='width:15%'>flex item 2</div>
<div class="...
11
votes
3
answers
20k
views
Centering content horizontally using flexbox [duplicate]
I'm struggling to center horizontally some content in my container:
https://jsfiddle.net/y56t31q9/6/
.container {
display: flex;
flex-direction: column;
width: 600px;
background-...
7
votes
5
answers
13k
views
Flexbox make two divs on left and third on right [duplicate]
I am using flexbox to align divs, and I want to make both postavatar and userinfo in left side and posttime to be in the right.
.postheader {
display: flex;
justify-content: space-between;
...
7
votes
4
answers
3k
views
Align all item to left except last in a flexbox container [duplicate]
Following is my code in which I am trying to align the last div (class="four") to the right and I am using align-self: flex-end; but still its not going to the right. Let me know what I am doing wrong ...
2
votes
4
answers
11k
views
How to create wrapping with flexbox children [duplicate]
I want a grid to wrap when constrained by an outer node:
So the following should have two cells one on top of each other, but it renders them side by side:
<div style="display:flex; width:100px"&...
11
votes
1
answer
10k
views
How can I align 2 first elements on the left and the last one on the right [duplicate]
I think my code is in order, but I do not know why I am unable to organize my elements in this way:
|** *|
This is my code:
.container {
border: 1px solid red;
display: flex;
justify-...
2
votes
2
answers
7k
views
Align the content of the div to the right in a flex [duplicate]
I tried to align the Add to library div to the right with float: right style but it does not seem to work. How to align that div to the right of the flex. Could anyone please help?
.song {
...
3
votes
2
answers
7k
views
Justify-self is not working when I want to align content in the center [duplicate]
I am having to use auto margins to align content in the center of the page.
div {
background: #121212;
font-size: 100%;
display: flex;
}
a {
color: #fff;
padding: 2%;
display: ...
5
votes
2
answers
5k
views
How to display child div on the end of parent flex row div and another two divs on the start of parent div? [duplicate]
How is it possible to display two div containers on the start of a row flex parent and the third one at the end? child-3 should be on the right side in the example below.
Here is a quick sample with ...
3
votes
1
answer
12k
views
CSS Flex-box justify-self / align-self not working [duplicate]
I have a component in React using Semanti UI react
I am trying to justify a single container to the flex-end but it's not working
<Item key={item._id} id={item._id}>
<img ...