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

Image may be NSFW.
Clik here to view.

Fit a div in sibling remainging space using only flexbox

I'm currently trying to make a div fit an empty space by using only CSS and flexbox,but I can't find a way to make it work.I can't change the HTML layout, and can't use absolute positioning...

View Article


Image may be NSFW.
Clik here to view.

How can I use flexbox child element min-height for the flex container height?...

My goal it to have a flexbox that use the greater min-size of its child to define its dimension along the cross axis. So with a flexbox in row direction, I would like to make its height equal to the...

View Article


React Native Flexbox - Not working, Items align under one column

I am looking to design a home page with 2-3 "images" per row but when I add a flexbox setting nothing really changes. The images are just aligning all in one column. What am I doing wrong?I have used...

View Article

React-Native: Avoid Text Wrapping

I have the title of a song and its duration showing in one line. The song title needs to show an ellipsis but the duration should never wrap or show ellipsis. I've tried several combinations but fail...

View Article

Image may be NSFW.
Clik here to view.

Columns, rows and gutter in Bootstrap 5 and Hugo

I use Bootstarp 5 and Hugo for a website. I want to set the column size in the test.md file. For example, I want a col-8 in the left column and col-4 in the right column. I have created two shortcodes....

View Article


space flexbox items using html tags as placeholders to set a flex property on...

I want to build a login form like this. As you can see the gaps between the elements have variing heights. So I thought about putting a div for each gap and giving it an according flex property.Are...

View Article

Flexbox child overflowing because containing image

body { background-color: rgb(28,38,60); font-family: 'Ubuntu', sans-serif;}* { box-sizing: border-box;}.team { display: inline-flex; padding: 10px; background: rgb(0 0 0 / 60%); border-radius: 20px;...

View Article

Converting TailwindCSS into CSS [closed]

Which online tools reliably converts Tailwind CSS to regular CSS? I'm seeking efficient websites or converters to streamline my workflow. Can you suggest any trustworthy options?

View Article


flexbox mixin not existing in a sass/compass installation via SCOUT

Maybe anybody has a hint for me and helps me saving time going through a jungle. I installed the sass/compass GUI "scout" (on mac) and now I want to use the compass mixin for my flexboxes.I can @import...

View Article


Image may be NSFW.
Clik here to view.

Horizontal Flatlist: Space between items

I'm trying to get space around my items in a horizontal flatlist, no matter how I try it doesn't seem to work:const renderItem = ({item}) => {return (<View style={styles.item}><Image...

View Article

Flexbox Alignment Issue in Sign-In Container with Flipper Feature Toggle

I'm encountering a layout problem on web page when using the Flipper gem for feature toggling. In the default state (Flipper disabled), I have both sign-up and sign-in containers, and they are...

View Article

Cannot get justified grid layout to work with long captions

I started with this justified image gallery which seems to work fine..gallery { display: flex; flex-direction: row; flex-wrap: wrap; gap: 5px;}.child { flex: 1 1 auto;}.child a { display: flex; height:...

View Article

using flex box to make a simple web page as i am trying to learn while coding

ì have 3 divs in a row using display flex i have 2 images either side of a block of text and i want the text to flow under the two images instead of them all having individual columnsi made a typical...

View Article


How do I make buttons with titles above to be side-by-side and aligned in the...

Here's I got so far: (https://i.stack.imgur.com/nAkhB.png)Here's my HTML:<h2 class="section-title">BUTTONS</h2><div class="buttons"><div class="button-default"><small...

View Article

Image may be NSFW.
Clik here to view.

How do I set horizontal and vertical gutters in bootstrap 5 and Hugo?

I use Bootstarp 5 and Hugo for a website. I want to set the column size in the test.md file. For example, I want a col-8 in the left column and col-4 in the right column. I have created two shortcodes....

View Article


CSS Error automatic zoom in background image when transition flex-grow

With this code in CSS:.image-accordion{ background-size: contain; flex-grow: 1; background-position: center center; margin-bottom: 2px; transition: flex-grow 0.7s ease-in-out; @include...

View Article

center mat form field element inside flex parent

I have a flex parent containing some buttons and a mat form field..toolbar { display: flex; justify-content: space-between; flex-direction: row; align-items: center;}<div...

View Article


Image may be NSFW.
Clik here to view.

Why display:inline-flex Make the window horizontally scrollable?

I want that cards moves from right to left with same height and width as shown in picture which works fine but i am getting window horizontally scrollable which i don't want. When i am putting...

View Article

Set image to always be full height in flex column

I have two columns set to 50%, left with text and right with image that should fill whole column vertically. The problem is that when text is a little bigger, there is a gap below the image. Is it...

View Article

Image may be NSFW.
Clik here to view.

Unwanted white space between sections of flex search card within css grid

I'm trying to layout some search result cards using tailwind. The cards are arranged using css grid while the content inside the cards - a header image, a title, and some metadata - are laid out using...

View Article
Browsing all 1305 articles
Browse latest View live


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