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

How do I break html lists in columns, honoring alphabetical order in column...

what if I have a list like...

View Article


Image may be NSFW.
Clik here to view.

Scrollable div to stick to bottom, when outer div changes in size

Here is an example chat app ->The idea here is to have the .messages-container take up as much of the screen as it can. Within .messages-container, .scroll holds the list of messages, and in case...

View Article


Image may be NSFW.
Clik here to view.

CSS Flexbox 2 columns with different heights

I have the following code:.wrapper { display: flex; flex-direction: column; flex-wrap: wrap;}.a { background-color: red; width: 65%;}.b { background-color: green; width: 35%;}.c { background-color:...

View Article

Image may be NSFW.
Clik here to view.

How to align elements to the left and right using flex-wrap [duplicate]

I have this aqua container with 6 divs inside of it. I'm using flex-wrap to wrap the divs when they get too big for the current screen, however I want the first div on the top line to align to the left...

View Article

Image may be NSFW.
Clik here to view.

Columns do not adjust with window size in flexbox due to images in them

I am trying to build a landing page that is split into two columns (currently unfinished). Each column contains an image and text. It displays perfectly fine when the window is full size, but any...

View Article


How to set "grow" size as max-width in tailwind css?

I have a layout based on Flexbox.The grow class sets the element size used to place the dynamic content.Now my content is one big table. I want to make it scrollable (horizontally), but it is not...

View Article

Image may be NSFW.
Clik here to view.

Make a div the same width as its preceding sibling [duplicate]

I have the following structure that I can't change to add or remove elements:<div class="container"><img src="image.png"><div class="caption">A very long caption that sometimes is...

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


Flex wrap css issue

I have a HTML structure to show primary and secondary information in one row. Until now, the requirement was to show only 3 elements in a row which works perfectly fine.but in a given scenario there...

View Article


Image may be NSFW.
Clik here to view.

How can an element with text shrink to its minimum size [duplicate]

You are seeing a flex-container with 3 flex-items. How can I let the middle box shrink to its minimum size depending on the width the text requires? I want to add two decoration dashes on the left and...

View Article

To arrange items evenly in a container while remembering their original position

I would like to use html and css to make it look like the title.The requirements are as follows:There are one parent element, some child elements, and some grandchild elements.The child elements are...

View Article

Maintaining aspect ratio of a stretched flex item

I have a card of sorts. On the right side of it is variable width/height content, and the left side is an image. I'd like the image to stretch vertically, taking up all of the vertical space in the...

View Article

Padding pushing items in a flex div?

So I have a navbar, and in this navbar I have the logo, the options and then the button. Whenever I apply padding to the button it pushes everything else to the left? Any advice cause I have never had...

View Article


How can I center text horizontally in a flex layout?

I am following this item to get a handle on a flexbox layout. The idea is to prominently display the current time and temperature in very large font, with an alternate city displayed along the bottom,...

View Article

Can it flexbox? Chat window with input at the bottom, chats scrolling up

Seems like it should be possible with flexbox, but I can't figure it out.http://codepen.io/MichaelJCole/pen/NGBVGeGoals:textarea (for typeing in messages) stays at the bottom the whole time.chats start...

View Article


Image may be NSFW.
Clik here to view.

How to create equal height row & stack column one below other in small view?

I want to create the grid with two columns & some rows such that both rows have same height (max height). But in my case rows of unequal heights are getting created. For example, column1: row1 have...

View Article

Image may be NSFW.
Clik here to view.

How do I use "flex-flow: column wrap"?

Short versionWhen using flex-flow: column wrap and display: inline-flex, it doesn't shrinkwrap like inline-block:(function() { var ascending = true; setInterval(function() { var parent =...

View Article


Image may be NSFW.
Clik here to view.

Fill up empty space in flexbox image gallery

I am have this HTML/CSS gallery using flexbox.@import "https://unpkg.com/open-props";@import "https://unpkg.com/open-props/normalize.min.css";:root { --magnifier: 6; --gap: 1vmin; --transition:...

View Article

Image may be NSFW.
Clik here to view.

Browser overlay obscuring bottom of page

I am attempting a layout consisting of header, content and footer. The header and footer should always be shown and the content should expand to fill any space remaining. I have implemented this in...

View Article

Nesting rows and cols in Bootstrap 5 - theoretical question

A newbie here.Yesterday I started to work with Bootstrap 5 and I was trying some layouts.I structured one like this:<div class="row"><div class="col-2"> not relevant...

View Article
Browsing all 1307 articles
Browse latest View live


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