Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
↧

Tailwind: add gap to flex without breaking row

I have a simple flex div with many children. I want 3 elements on each row using tailwindcss.Is there a way to accomplish this using just tailwindcss classes? I tried with gap-4 on my parent div and...

View Article


Image may be NSFW.
Clik here to view.

Why are overflowing flex items shown in purple stripes?

I am learning more about the Flexbox inspector in Chrome. So far as I understand when I hover over a flex container in the inspector the purple stripes indicate the available space within the flex...

View Article


basis-[800px] prevent element from shrinking in flex layout

I have the following element:<div className='mx-auto flex flex-col-reverse gap-5 md:flex-row md:items-start'><div className='flex min-w-0 shrink grow-0 basis-[800px] flex-col'>...

View Article

Why is my flexbox not working correctly?

I have three divs in a row. The first should be a fixed with, the second should expand until it hits a "max-width", and the third div should take up the remaining space. It works correctly until the...

View Article

How can I create a grid that meets custom specifications?

I have an ad system with two categories: TOP and BASIC. Ads are loaded from the backend in random order, returning a paginated object where TOP ads come first and BASIC ads come after. I want to...

View Article


Bootstrap 3.3.7 "row" causing horizontal scroll bar

Ok ok, I know. This question has been asked a lot. But, so far, I have not found a working solution. I boiled my page down to nothing but this:<div class="row"><div class="col-sm-12">...

View Article

Media Query not working for site hosted on Github Pages

I'm Building a new single page site and for some reason my media query doesn't seem to be working? If I resize the browser it works fine, but if I visit the hosted site on GitHub pages on mobile I...

View Article

Why is this code, with display flex, justify-content center and align-item...

I am learning JS and one of the tasks I do - is to code simple JS, HTML and CSS oriented code just to help me learn JS and be able to create certain JS web elements and projects so that when I feel I...

View Article


How can I make a responsive taskbar like Windows that fits unlimited app...

I am building a desktop-like interface in HTML/CSS and trying to recreate a Windows-style taskbar.I want the taskbar to behave like in Windows:When many windows/apps are open, the taskbar fills up with...

View Article


What's the difference between align-content and align-items?

What is the difference between align-items and align-content?

View Article

How to not overstretch the last line in a flex container with align-items:...

I have a flex container with flex-wrap: wrap and align-items: stretch so that children gets stretched when the container is resized up until the next child fits.The problem is usually the last line has...

View Article

How to offset flex item?

I'm developing a pure flexbox grid framework called flexboxes. I'm looking to implement a way to offset flex items by a particular number of grid columns in any flex-direction. This is possible with...

View Article

Wrapped anchor tag around inline-flex container - text not underlined in Firefox

I'm trying to nest an inline-flex container inside an anchor tag (IE11 made me do so). Unfortunately I get different results on FireFox compared to Chrom for example. On Chrom the text remains...

View Article


Image may be NSFW.
Clik here to view.

Can an inline-flex element adjust to the width of a vertical-rl child element...

I have a div with display: inline-flex that contains a div with vertical text using writing-mode: vertical-rl. In Chrome and Safari, the outer div expands to fit the width of the inner div, but in...

View Article

Image may be NSFW.
Clik here to view.

Align section heading with the first content item instead of centering in...

I'm working on a section layout where I have a headline and a content container using Flexbox to center the content horizontally. The content container holds several media cards.<section><h2...

View Article


Image may be NSFW.
Clik here to view.

How to shrink boxes along the cross-axis of a flex layout with scroll bars...

Consider the following markup which is also available via this Fiddle:<!DOCTYPR html><html lang=""><head><title>Flex Box Test</title><style> * { box-sizing:...

View Article

Image may be NSFW.
Clik here to view.

Why do my label and node overlap when I make a loopback (self-connection) to...

I am using jsPlumb v2.1.2 (Community Edition) along with farahey.js for flow layout in my project. Since the project is already live, I cannot change the version.The issue I am facing is that when I...

View Article


Image may be NSFW.
Clik here to view.

bootstrap 5 space-between misaligned

I have some HTML/CSS where I am trying to make use of Bootstrap 5.2 and justify-content-between to push 2 buttons out to the edges of the container.<div class="container"><div...

View Article

Trying to get div on same line with using flexbox

I am trying to arrange an image next to some text. I was able to accomplish this with font awesome icons and text, but two images I was unable to get an icon for, so I am using images. I can't seem to...

View Article

Why can max-width: min(100%, 30em) make the container take up all available...

I was trying to be smart and applied max-width: min(100%, 30em); to my elements that contain text. The result is that under some circumstances, the container of such an element takes up all horizontal...

View Article

Flexbox justify-content:space-between doesn't work properly with...

I'm facing this issue:I'm looking to use position:absolute, to adjust the span.materias__item-detalle, to bottom of the div, without caring the size that the h4 occupes.But, I also want to use flexbox...

View Article


how to make child in flex go full width?

I've started using flex and I love how it works. I'm using flex layout and I want the btn-group class inside dashboard-body to go full width of the parent. Right now its width is equal to the width of...

View Article


Flex item with wrapped text too wide [duplicate]

Is there anyway I can make the width of .text1 (with the red border) take up only the space it needs?I've tried:flex-growflex-shringfit-contentmargin right auto on the second itembody{ width...

View Article

Nested Tiles Bulma

I'm trying Bulma CSS Framework. There is no class tile in the bulma css-files. But still I find a lot of really nice examples like this all over the place. Did it have a tile class before, but gone...

View Article

CSS Grid layout sidebar has huge spacing [closed]

I have used css grid to create a flexible layout, where I am able to move divs into different slots from desktop to mobile.The issue I am having is if the content in my left div is long then the right...

View Article


Image may be NSFW.
Clik here to view.

CSS Grid Layout creating huge gap in my sidebar between 2 divs [duplicate]

I have used css grid to create a flexible layout, where I am able to move divs into different slots from desktop to mobile.The issue I am having is if the content in my left div is long then the right...

View Article

How to prevent flex item from overflowing container?

So, I need a page with a 100%-width header above and two blocks - aside and main - that fit remaining height below it in the parent block (its height - 100vh) and both lay on a horizontal baseline....

View Article

Changing size of select list inside flexbox causes it to collapse

I have a case with a select element inside a flexbox, but the number of options in the select is not known until runtime. So I'd like to change the size attribute to match the number of options. When I...

View Article

Image may be NSFW.
Clik here to view.

::before flex item getting out of document flow

As you can see in this image that there is a long black box in the middle of the layout which is set to "height : 100vh" but is getting out of the document flow,whereas as per my understanding it...

View Article



How can I prevent a flex item from overflowing its parent container in a...

I'm working on a custom WordPress theme and using Flexbox to build a responsive layout. One of my flex items (e.g., a card or sidebar element) is overflowing its parent container on smaller screens,...

View Article


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