Quantcast
Browsing all 1312 articles
Browse latest View live

different flex-basis property in console than set in sx styling in code

I'm using the sx prop in MUI to style my components, so here I apply it to my Grid - specifically looking at the flexBasis: 'auto' piece:return (<Grid container spacing={2} sx={{ width: '100%',...

View Article


Making gap in ul elemets

how to make so my three elements are strecthed out evenly?I want to be like thisThis is me, coding.flex { display: flex;}.js-spacebetween { justify-content: space-between;}<footer...

View Article


Making a border-bottom or underline extend past text

I am trying to figure out how to extend the border-bottom of this element so it matches the mockup, but I can't seem to do it. It only really goes under the text part.How can I make it so that it...

View Article

Image may be NSFW.
Clik here to view.

React Native Header title with flex elipse and right icon

I am trying to get this flex situation fixed on the title, where if its a long title you get the ellipse, but if short its centered with the v icon to the immediate right like in the first screenshot,...

View Article

Flex-item overflow in main-axis direction

I'm really sorry about this question, because I've already seen many similar questions on here, but I still can't figure it out.I'd like to create an overlay element with controls for a display...

View Article


ReactNative: how to center text?

How to center Text in ReactNative both in horizontal and vertical?I have an example application in rnplay.org where justifyContent="center" and alignItems="center" is not...

View Article

Image may be NSFW.
Clik here to view.

react-select width inside flex container

I'm trying to build a React component that includes react-select as child element of a flex container which, in turn, may contain other elements of variable size.The main problem is that I'm currently...

View Article

Image may be NSFW.
Clik here to view.

Why does flex: 0; override the width property?

This is my first year teaching web design, and we are covering flexbox layout. I have run into a glitch with the flex property that I cannot find an explanation for anywhere.I have reviewed this using...

View Article


When I reach the breakpoint 480px, the right padding that I set on body...

I have some articles in my code which has a display of grid. I have set the padding of the body to padding: 0 1em; and the min-width of the following elements and classes to 450px;can someone please...

View Article


React Native negative flex (flex:-1)

Actually flex (flex:1) occupy the free space of screen so if we set the Negative value so what should do.like as flex:-1.

View Article

How do I make a flex box column to stay at a 100% height no matter the width...

I'm a beginner in html css.I'm trying to make a basic html css page containing 3 column divs. 2 of them of width 40% each and one of them being just for buttons or text so 15-20%. The total height of...

View Article

How to maintain the current row structure while arranging cards of varying...

Stack Overflow community!I need assistance with placing product cards on a webpage. They should be arranged haphazardly, as shown in the attached layout, and their height may vary. Here's the layout...

View Article

Two cases of flex containers with and without vertical overflowing

html { height: 50%;}body { height: 100%; margin: 0;}.container { border: 1px solid green; width: 50px; height: 100%; display: flex; flex-direction: column;}.item-1 { border: 1px solid blue; min-height:...

View Article


Image may be NSFW.
Clik here to view.

Aligning divider element centrally with the repeated elements around it

I need to create a section like this:Here's what I have already tried:<div class="container"><div v-for="(step, index) in steps" :key="index" class="step"><div class="content"><div...

View Article

Image may be NSFW.
Clik here to view.

Create two scrollable to right rows with fixed HTML code

I have created a layout with Flexbox, to display 20 images, 6 in 1 row, and then the rest are hidden and viewable on scroll. I trying to create 2 rows with 6 images in each and then the rest images...

View Article


Flexbox: text not shrinking proportionally

For a website I am creating, I managed to recreate the company logo (which is fairly basic) in Flexbox/CSS. I found the Flexbox CSS somewhere on the internet, but don't recall where. It's mainly...

View Article

Image may be NSFW.
Clik here to view.

CSS for a 2 column layout with questions and options, but the options look...

I'm making an Angular app using Material with a tab layout where I created a 2-column questionnaire with questions and options below them, but these options look jagged; I want them to look vertically...

View Article


Image may be NSFW.
Clik here to view.

How to make a grid that is like a flex row wrap but if the height differes it...

I am making a grid which will contain some cards. This is for a home automation dashboard so I will have some cards with less content and some with more.What I want to accoplish is to have a grid that...

View Article

Image may be NSFW.
Clik here to view.

Remove the right margin of a flex-wrapped item [duplicate]

As shown in the below picture, there is a gap between the two flex item when the text in the first item is wrapped. Is there a way to remove this gap? Thank you..container { display:...

View Article

Image may be NSFW.
Clik here to view.

Flex elements do not take all the available space before breaking into a new...

I'm trying to achieve the next design, where the elements take all the available space before breaking into a new line and also keeping the text centered:Right now I'm using these styles in the...

View Article
Browsing all 1312 articles
Browse latest View live