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

Images scales in Edge and Firefox, but in IE11 it goes wrong

I created a design with two images next to each other using Flexbox (css). In Edge and Firefox it looks good. The images are displayed nicely. When resizing the screen, the images scale well, both...

View Article


can child div be wider than parent div in flex container?

i enclosed 3 child container in parent container,width of 2 child container is size of parent container. and other child container overflowsenter image description herei was expecting this output i.e (...

View Article


Image may be NSFW.
Clik here to view.

Rendered size and Rendered aspect ratio of movie posters of TMDB API are not...

Im new to web development.As you can see in the image, the size of the movie posters are inconsistent and varies after entering the details page of each movie. Here my relevant codes:import React, {...

View Article

Divs in container Glowing and Not Fitting Properly [closed]

I'm working on the Etch-a-Sketch project from The Odin Project which requires us to not use grid for this project, only flex, and I’m encountering a couple of issues with the layout.Glowing Grid Divs:...

View Article

Image may be NSFW.
Clik here to view.

align html div blocks horizontally [closed]

I am designing a website. Currently, I am trying to align several div blocks in rows. My code look as follows.main-content h3 { margin-bottom: 20px; font-size: 2em; color: #333; text-align:...

View Article


Image may be NSFW.
Clik here to view.

Centering logo in centered menu [duplicate]

How to alter the css (using flexbox) for this menu so that the center li (logo) is absolutely centered, and the other links are centered between equal sized, evenly distributed frames that they are...

View Article

HTML Flexbox container cannot automatically adjust its width in Firefox...

I have the following HTML layout:.top-container { display: flex; flex-direction: row; gap: 20px;}.content-container { display: flex; flex-direction: column; height: 500px; flex-wrap: wrap; border: 2px...

View Article

Center two elements if they have to wrap, otherwise stick to the sides

I have two elements which should be put on the edges of the screen if it is large enough, or, it they have to wrap, they wrap and align themselves horizontally.Like this (imagine those are browser...

View Article


Image may be NSFW.
Clik here to view.

How to show 2 Boxes in front of one Tall Box using MUI Stack or flex Box

I am working on a dashboard layout where widgets can be of different size.I am using MUI Stack. I have a requirement where if I add a 1 tall widget (double the height of small widget) and 2 small...

View Article


Layout problem. Needs to be done only with css without js [closed]

I have a problem with the layout of the cards.I need the card on the left side to always be full height until the bottom card width reaches the card on the left side. Then the height on the left card...

View Article

Image may be NSFW.
Clik here to view.

Cannot scroll to last element in content container tailwindcss

I want to create an application layout that has a top toolbar with a could of divs in it, then a sidebar and a content window with a top navI have got the structure almost working but I cannot scroll...

View Article

Using margin on flex items

I was under the impression that a margin can be added to flex items/children, and flexbox should automatically take that into account and calculate the correct spacing between the items.I can't seem to...

View Article

Image may be NSFW.
Clik here to view.

How to wrap text separated in several divs at if it was in one div?

<div style="width: 200px; background-color: lightblue"><div style="display:flex " ><div>This is some text.</div><div>This is some text. This is some...

View Article


How can I sync my overlay image with my main circle shape?

I'm trying to replicate the look of a solar eclipse. I have a startup screen that shows a <div> with a border-radius at 50% and a width/height of 20vw. This achieves the rounded look of course...

View Article

How to Center Navigation Content and Ensure Background Stretches Full Width...

I'm trying to optimize my website's navigation bar for large screens, and I'm facing two issues:The content inside the navigation bar is not centered when the screen width exceeds 800px.The background...

View Article


How to make a flexbox container auto-width and centered with buttons aligned...

Im using the following code, but the container is still full widthI'd like it to adapt to the width of its contents.cta-primary { display: flex; justify-content: center; align-items: center; width:...

View Article

How can I get my Bootstrap grid to fill the remaining height of the page and...

So I have a Bootstrap header, one of the ones from their examples. Below that, I have a grid container with 3 columns in it. I want that grid to fill the height of the page that remains after the...

View Article


Image may be NSFW.
Clik here to view.

How do I use flex to have a div aligned to the left spanning all the height,...

So I have 4 divs, one of which is the parent acting as a "background" div, and 3 other divs inside of that one. I want to align the larger one to the left and have it span the full height of the div. I...

View Article

Bootstrap: Reversing columns makes them stacked

I am trying to get the 'second' and 'third' columns to be sat next to each other whilst also reversing the order of them for the MD breakpoint<body><div class="row...

View Article

Why is flex not working in VS Code or Glitch, but does work in Codepen?

I have a very simple piece of code, and I'm wondering why this (flex) will not work in VS or Glitch, but does in Codepen? How do I make it work in VS and Glitch?<div class="container"><div...

View Article
Browsing all 1305 articles
Browse latest View live


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