Quantcast
Browsing all 1318 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Why overflow: clip not working in flexbox? [duplicate]

Here my codepen: https://codepen.io/wongest/pen/bGyXmbo.box { width: 500px; height: 500px; border: 1px solid #000; display: flex;}.box1 { flex: 1; height: 500px; background-color: blue; overflow:...

View Article


CSS grid items center [closed]

on larger screens, it has 3 cols to display the data divs, if the data is less than 3 it should be displayed at center of 3 cols, the code is below what should be added?<div className="grid...

View Article


How to make Flexbox items the same size

I want to use Flexbox that has some number of items that are all the same width. I've noticed that Flexbox distributes the space around evenly, rather than the space itself.For example:.header {...

View Article

css flex row with one element using horizontal scroll

I want to create a flex row with 2 child elements. Left and Right where:the right side will contain a couple buttons stacked and its width will not changethe left side will have a dynamic number of...

View Article

Image may be NSFW.
Clik here to view.

CSS grid/flex shrink based on content but grow evenly

I am building a Navbar for my app. I would like to have my items shrink based on their content but grow based on the average size.All I want is:if there is enough space for all items to be...

View Article


Image may be NSFW.
Clik here to view.

Flex children overlap when nesting flexboxes

I'm trying to create a login form in React Native that includes a button to view and obscure the password input. I want the button and input on the same line, so I wrap it in a View which I set style...

View Article

Image may be NSFW.
Clik here to view.

React native text going off my screen, refusing to wrap. What to do?

The following code can be found in this live exampleI've got the following react native element:'use strict';var React = require('react-native');var { AppRegistry, StyleSheet, Text, View,} = React;var...

View Article

How to Right-align flex item?

Is there a more flexbox-ish way to right-align "Contact" than to use position: absolute?.main { display: flex;}.a,.b,.c { background: #efefef; border: 1px solid #999;}.b { flex: 1; text-align:...

View Article


Center a CSS slider when using scroll-snap and flex

I am trying to create a basic slider with 3 slides. The idea is to show the second slide on initial view, if the user swipes left, the slider will show the first slide, if the user swipes right it will...

View Article


What is the concept of "alignment" in CSS as applied to flex items?

According to the Flexbox spec, alignment is what happens after the dimensions of flex items have been finalized.After a flex container’s contents have finished their flexing and the dimensions of all...

View Article

align-content not working on flex items

I have a row-direction flexbox nested in a column-direction flexbox, but when I want to use align-content in the child, it doesn't work.When I replace display:flex of the parent by a display:block, it...

View Article

Fill (stretch) or scroll based on element size

Is it possible to get the stretch behavior of display: flex when min-content would not fill the page, but still have good scrolling behavior if min-content is larger than the page size?Essentially if...

View Article

Unable to scroll sticky Footer on mobile view (Footer reveal effect) -...

I've made a footer reveal effect using css, using following two classes:Content class applies to wrapping div above the footer. .content { min-height: 100vh; background-color: white; /* Needed to...

View Article


Image may be NSFW.
Clik here to view.

CSS : Flex layout - automatic resizing of columns

The flex layout will start with three columns. When the window becomes smaller, we will have a two-column layout. The first column will be on its own row, and the middle/right will share the space on...

View Article

How to get flex grow to work with shadcn scroll area?

Im trying to make a scroll area use flex grow so as to be the available height of the parent.<div className="w-4/5 px-[3%] flex flex-col flex-grow"><Navbar /><div className="flex...

View Article


Image may be NSFW.
Clik here to view.

Strange MUI Grid behavior when using spacing

I have the following code<Box sx={{height:'100vh', background: '#f5f7fc', overflow:'auto'}}><Grid container justifyContent={'center'} padding={2}><Grid item xs={12}><Typography...

View Article

Height of flex container determined by specific child [duplicate]

on my page I have three divs next to each other. One main content and two sidebar type things. They all have dynamic content and no fixed heights.What I want is that the main child determines the...

View Article


Image may be NSFW.
Clik here to view.

Swift Sync Buttons on Viewcontroller to ScrollView on Custom View

So what I have are a bunch of buttons in a custom view arranged in a checkerboard layout using Flexbox withthe FlexLayout plugin. On this custom view the rootFlexContainer is a subview of scrollView...

View Article

Why does increasing text length in the flex item cause the previous flex item...

I have a parent container main-wrapper. It's a row flex box that has two div flex items.The second div item has flex-grow: 1 so the item takes up the remaining space. The text inside each div item...

View Article

How to make flexbox overflows and to be scrollable?

I have the following example (I have simplified it with just the necessary code)..wrapper{ overflow: auto;}.container{ max-width: 85%; margin-left: auto; margin-right: auto;}.leftColumn, .rightColum{...

View Article
Browsing all 1318 articles
Browse latest View live


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