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

Im trying to fill a column of a row with an image

Im trying to fill a column of a row, made using bootstrap, with an image. I want the image to be the same height as the row and the part of the image that doesnt fit the width to be cut off. However...

View Article


Bootstrap 5 justify-content not working correctly and cannot vertically...

I have the following piece of code and I am use bootstrap 5:<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"/><br><br><div...

View Article


Specific Item Order with Flexbox or Grid

I'm trying to order items in a specific order for 2 different views. I'm using Vuetify for this.First we have a mobile view, which is very simple. I'm developing my web app with the mobile-first...

View Article

Image may be NSFW.
Clik here to view.

A Child Flexbox elements height keeps growing larger than parents flexbox...

I have one horizontal flexbox container that has 2 child vertical flexbox containers, like the following:<div style="display: flex;"><div style="display: flex; flex-direction: column;...

View Article

Image may be NSFW.
Clik here to view.

Background color for active item in flexbox only affecting text, desired...

After creating a div with the class of .navbar and implementing it via display: flex; for each page I am on, I want the active one in the navbar to have its entire background to have a different color....

View Article


Image may be NSFW.
Clik here to view.

How to stop flex-box from pushing other elements out of the container?

It's a bit hard to explain, but consider a flex header with a menu and then something else on the right which is fixed width. As the window size shrinks in width, there is less room for the menu....

View Article

Can't scroll to top of flex item that is overflowing container

In attempting to make a useful modal using flexbox, I found what seems to be a browser issue and am wondering if there is a known fix or workaround -- or ideas on how to resolve it.The thing I'm trying...

View Article

Prevent flex items from stretching

Sample:div { display: flex; height: 200px; background: tan;}span { background: red;}<div><span>This is some text.</span></div>I have two questions, please:Why does it basically...

View Article


Tailwind CSS - Overflowing footer with fixed position

I'm new to Tailwind CSS? A CSS approach would do but ideally I'm looking for the reason why Tailwind CSS wouldn't wrap the footer to parent's width.Code and Demo:...

View Article


flexbox problem (flex-col -> basis) with Tailwind

I don't understand why my image change the height of my div, I'm in flex-col so basis change the height and not the width (in flex-row). So I have an height defined by my basis-28 but with my image...

View Article

Page level scroll bar while using flex shrink

I am trying to develop a a page that has column layout with three elements such as sub header, content and footer. I want to keep header, sub header and footer to stick but content should have vertical...

View Article

How do I remove a flexbox from above the header of my website?

There is simply what looks like blank space above my menu. I am trying to make a website in Wordpress and I used a theme called Kaya and am using Elementor and Mega Menu. I can't delete it in Elementor...

View Article

Image may be NSFW.
Clik here to view.

Create CSS grid that collapses columns if text in containers are to long to...

Problem:I want to create a CSS grid that contains 2 columns, but collapses into 1 column if the text/content inside any of the containers are to long to fit. The grid width should be 100% of its parent...

View Article


Are there any errors in my code to display the layout for different screen...

/* Mobile First Approach */@media only screen and (max-width: 600px) { /* Adjustments for smaller screens */ .container { flex-direction: column; /* Stack columns vertically */ align-items: center; /*...

View Article

How to make a Flexbox that spaces items evenly while also allowing partial...

* flex box stuff */ display: flex; /* this makes it fill from left to right, leaving empty space on the right */ /* justify-content: flex-start; */ /* this makes it all fill evenly, but then partially...

View Article


How to make these cards sit side by side in flexbox CSS

I have been trying so many configurations to get these 3 cards to show side by side while using flexbox. I've adjusted the width and column / row. Where am I going wrong?Is flexbox the best way to do...

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


flexbox issue ul navbar with padding right

I have two questions regarding flexbox...I want space between the ul items in the navbar, now they are glued together... How can I get some space between the link. I can use padding-right on each , but...

View Article

Image may be NSFW.
Clik here to view.

Flex-basis issue with Firefox

I'm building an image slider that needs to be rendered as shown in the following screenshot:I managed to implement this design with the following code:.slider { display: flex;}.slider .slide.posts-2 {...

View Article

How to enable vertical scrolling with flexible height?

I want to create a chat window, that has vertical scrolling if the content oveflows.I have a flexbox containing 3 items. Title, The .chat chatbox and an input.The .chat chatbox has Flex: 1; And I...

View Article
Browsing all 1461 articles
Browse latest View live


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