Quantcast
Browsing all 1307 articles
Browse latest View live

I would like flex box to grow in width (horizontally) but not in height...

Is there anyway to allow flex items to grow in width but only in height when necessary. I love flexbox but find it painful that flex items in a row all grow to the same height even when there is not...

View Article


Image may be NSFW.
Clik here to view.

How to make conditional margin for hideable flex panels?

I have initial html:body { background-color: grey;}.container{ display: flex; width: 200px; height: 100px; background-color: red;}.panel{ height: 100%; flex-grow: 1; flex-basis: 50%; color:...

View Article


How to align the last child of a table cell to the bottom of the cell?

I have a table with two divs inside a cell. I want the first div aligned to the top of the cell, and the last div aligned to the bottom. This is an example of what the table might look...

View Article

Image may be NSFW.
Clik here to view.

How to tell if flex-item is being wrapped [closed]

I need to apply different styles if a flex-item is being wrapped. I can't find any css or js indicator that a flex-item is being wrapped. The browser has to know that the item is being wrapped... Where...

View Article

Image may be NSFW.
Clik here to view.

How I can create a list of items that grows horizontally and has horizontal...

This is my code:.wrap-here { display: flex; gap: 5px; flex-wrap: wrap; width: 250px; overflow: auto;}.item {flex: 0 0 20%;border: 1px solid black;padding: 10px;margin-bottom: 5px;}<div...

View Article


newbie Flexbox Responsiveness alignment issues

I'm trying to make my neocities using a premade flexbox layout for the first time.In mobile devices, the boxes are slightly aligned to left, making the browser to zoom in to center the content...

View Article

Make all flex box children take the height of the highest child

Here is my flex box UL:ul { box-sizing: border-box; padding: 0px; margin-top: 0px; margin-bottom: 0px; max-width: 1159px; display: flex; flex-direction: row; flex-wrap: wrap; justify-content:...

View Article

Image may be NSFW.
Clik here to view.

How to set a fixed width column with CSS flexbox

I want the red box to be only 25 em wide when it's in the side-by-side view - I'm trying to achieve this by setting the CSS inside this media query:@media all and (min-width: 811px) {...}to:.flexbox...

View Article


Image may be NSFW.
Clik here to view.

Safari places elements outside flex column

I have the following HTML and CSS:.container { display: flex; min-height: 100vh; flex-direction: column; gap: 2px;}.header-nav,.footer-nav,.container { padding: 4px;}.main-content { display: flex;...

View Article


FlexLayoutModule not working with Angular 11

I updated to version 11 today. My package json is below. The FlexLayoutModule no longer engages and formats the divs with the directives. It doesn't appear that anything happens at all, but I don't get...

View Article

Footer not changing dynamically with @media use

I have a basic footer lined out and my nav bar and header have both dynamically adapted so far nothing crazy but I'm working on it however when i went to try and manipulate my footer I just couldn't...

View Article

Flexbox child expands container instead of overflowing

I'm trying to create a layout using flexbox but I'm stumped as to why I can't force a particular section of my UI to overflow with scrollbars. Everything seems to work great until a large child is...

View Article

Image may be NSFW.
Clik here to view.

Taking all the real remaining space in a row

I want to create a Row in Flutter with an avatar and some text. Currently, text is taking all remaining space horizontally with Expanded. I want to get rid of spacing on the left in the following...

View Article


Prevent fixed ratio items from overflowing flex container on cross axis when...

I need to fit 1x1 items (could be avatars) inside a flex row container of a predetermined ratio that can grow based on parents. Problem is that under a certain number of items, they overflow the...

View Article

Is it possible to animate Flexbox inserts & removes?

When I remove an item from a flexbox, the remaining items "snap" into their new positions immediately rather than animating.Conceptually, since the items are changing their positions, I would expect...

View Article


div's are not in the same width when its on column

I tried to create a 3 div container with max-width 400px; after I changed the direction to flex-direction: column; I lost the width of my container.(After changing the flex-direction to column my...

View Article

Image may be NSFW.
Clik here to view.

Popup menu using flexbox

I am trying to build a header component using FlexBox. This is a picture of what I'm trying to achieve:The red box is a flexbox. The green boxes are each <div> elements within the flexbox. The...

View Article


How to format images in flexbox to avoid overflow and cropping

I want to create a responsive image gallery using flexbox where each row has images scaled to equal height while preserving aspect ratio and not cropping.To highlight what I mean here are some...

View Article

Use justify-content: flex-end and to have vertical scrollbar

I have chat and I need to scroll all content to bottom.I want to use justify-content: flex-end and to have vertical scrollbar..session-textchat { height: 320px; background: #fff; display: -webkit-flex;...

View Article

Image may be NSFW.
Clik here to view.

How to scale flexbox items to the size of their containing images

I want to create a responsive image gallery using flexbox where each row has images of different dimensions which are scaled to equal height while preserving aspect ratio. For example, if a row has one...

View Article
Browsing all 1307 articles
Browse latest View live