All Questions
747
questions
0
votes
0
answers
35
views
unable to get consistent layout with tailwind for relative container
I am trying to build a form layout in a NextJS project with tailwind CSS.
here is the CodeSandbox Link for the issue.
After running the code in sandbox, please click the button the view the resulting ...
0
votes
1
answer
20
views
Keen-slider pushes layout
I'm building a layout in which I use react and the keen-slider library, when I put the keen slider in a div that is flex, the keen-slider pushes my layout. Below is my code. When I remove min-width ...
1
vote
2
answers
57
views
Position the div at the bottom
I want to fix this div at the bottom of my webpage, here is my react code:
It's written in tailwind css but you can answer in normal css too
I've tried using bottom property but it didn't work
<div ...
4
votes
1
answer
54
views
Difference in flexbox overflow behavior between React and React Native
I'm new to React Native, so I apologize if this is a simple question. I'm trying to achieve a flex layout containing two child flex containers with their own content, where if one child's content ...
0
votes
0
answers
16
views
Frame-Motion package breaks a flexed material-react-table
I have a Material-UI 5 Card containing a Material React table (https://v1.material-react-table.com/). I want the table to occupy the entire remaining space within the Card. This is worked with some ...
0
votes
0
answers
33
views
How to make container scrollable but fill horizontally with React and Tailwind
I want a dashboard with a top and side bar and then the content in the middle. I want the content to be scrollable but I want it to fill the available height. The only issue is that when I try to fill ...
-1
votes
1
answer
38
views
Flexbox layout without item re-rendering to new parent [closed]
This is the layout i'm trying to make:
I have a difficult flexbox layout that I'm trying to achieve, and I have a difficult restriction that one of the items is a Webgl player and cannot be ...
0
votes
0
answers
23
views
How to properly resize single row/column in flexbox
Here is what I have:
And here is what I need:
is there a way to set second item height to max window height without setting "height" property?
My code in React.js
return (
<div ...
0
votes
0
answers
14
views
How to make a grid that is like a flex row wrap but if the height differes it wont stretch the elements [duplicate]
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 ...
0
votes
0
answers
31
views
styling layout for a react app using react-bootstrap
I am working on my frontend UI. I am using react-bootstrap 0.33.1 which supportsbootstrap v3.3.x.
This is how my UI looks like right now.
But, this is not something that I am expecting. I want to ...
0
votes
1
answer
40
views
Render data in right or left column based on the type using flex
I would like to create and html view which is populated from the array.
The view has two columns and based on the element type I would like to put element in left or right column for the desktop view.
...
0
votes
0
answers
28
views
How to prevent Grid items to have same height [duplicate]
Grid forcing to have small div to have same height as neighbor div. But the problem is, the grid is forcing to have items same height even though i have applied h-fit. I want items to come below to ...
1
vote
2
answers
51
views
Columns do not adjust with window size in flexbox due to images in them
I am trying to build a landing page that is split into two columns (currently unfinished). Each column contains an image and text. It displays perfectly fine when the window is full size, but any ...
0
votes
1
answer
60
views
Tailwind "w-screen" breaking other divs
I have the following screen atm:
And Im trying to make a div that fills the whole blank space, but when i try using "w-screen" or any high value at the width it breaks into the left div, ...
0
votes
0
answers
37
views
How to scroll until a specific element in a flex-box?
I am buliding a react app. I have a flex-box which contains buttons with patients' names from right to left, and it is inside of a container that allows scrolling if the flex-box is overflowing. ...