Skip to main content
3 votes
2 answers
73 views

CSS Flexbox no wrap with padding preserved

The following is a css flex box inside a scroll container. The scroll container has left and right padding however with flex-wrap set to no-wrap, padding-right is ignored. This is presumably because ...
Walrus's user avatar
  • 20.6k
1 vote
1 answer
109 views

How to make a child fill 100% height for a "full-screen" scroll effect, inside a dynamic flexbox container?

I am trying to build a page layout with a standard structure: a Header, a Footer, and a main content area that fills the available vertical space. The Goal Inside the main content area, I want to ...
ChengCheng_0v0's user avatar
1 vote
2 answers
95 views

Making the text in middle of two text boxes align in the middle

I want to align a text, "OR", in middle of two text boxes. I am using bootstrap and trying to put "OR" in between of two text boxes like so: <div class="form-group row"> ...
rimi's user avatar
  • 797
0 votes
1 answer
38 views

How to make collapsible element expand downward while using flexbox and margin: auto [duplicate]

I have a flex layout with some child elements: var coll = document.getElementsByClassName('collapsible-controller'); var i; for (i = 0; i < coll.length; i++) { coll[i].addEventListener('click', ...
Dave's user avatar
  • 103
0 votes
0 answers
26 views

React Native: How to keep footer buttons pinned above SafeArea + fixed padding while parent container height is dynamic?

I’m working on a React Native layout where: The parent container’s height changes dynamically (based on user settings or API values). Inside the parent, I need to keep some content at the top and a ...
Dev Victor's user avatar
1 vote
1 answer
89 views

Is there a way to make my tabs appear 4 in a row for large screens, 3 in a row for medium screens, and stack atop each other for small screens? [closed]

I am using Tailwind CSS in my PHP/HTML project, so the only solution I'm looking for is tailwind. I got the tabs to sit side by side, but unfortunately, when I test on small screens, they still sit ...
CatScript Apps's user avatar
2 votes
0 answers
117 views

Is it possible to do this in CSS Grid / Flexbox? [closed]

So I have a parent with divs inside. I want each div to be a column (amount of columns can be changed by the user). I want each div to take as much space as possible until it hits a width of 15rem for ...
lm16's user avatar
  • 89
1 vote
0 answers
87 views

Which layout changes cause an input field to close its modal?

If the layout of an <input type="date"> element changes while its modal (the "datepicker") is open, this can in certain circumstances cause the modal to be closed. The ...
Heiko Theißen's user avatar
0 votes
0 answers
24 views

How to size a parent div based on some of its children [duplicate]

I have a div that contains multiple other divs, for 2 of those I want to make sure that the parent div is at least as wide as those child divs, for the third I want it to scroll if it gets too big. I ...
foaly's user avatar
  • 1
2 votes
0 answers
30 views

React Native and FlexLayout both depend on Yoga — duplicate definition error

I’m building some native Swift code that uses FlexLayout, which has a dependency on Yoga. When I integrate this with React Native and try to compile, I run into a “duplicate definition” error because ...
Bimawa's user avatar
  • 3,750
0 votes
1 answer
50 views

Angular mat-form-field not resizing in flex-box

I am trying to use Angular material form field along with flex-box, but unable to make them shrink on screen resize, i am sure i am missing some flex-box property or style, please help me in fix this ...
Shashank.gupta40's user avatar
-3 votes
0 answers
33 views

How to avoid empty space on flex container with wrapped contents? [duplicate]

I have a simple input field that sits on a single line but wraps when there is not enough space, using CSS flexbox. I would like to center this field, but when wrapped, it leaves empty space on the ...
Marcos Pereira's user avatar
0 votes
2 answers
73 views

Justify inner flex-box in center of parent div [duplicate]

I have a series of dynamically created 'content' boxes that I need to justify left and flow to a new row depending on screen size. This part is working, however I want to get the div that contains ...
Chris Crawshaw's user avatar
-1 votes
2 answers
60 views

Using bootstrap to center 1 div and place another one next to it [duplicate]

I'm trying to use Bootstrap's d-flex in a slightly different way than in this example: My aim is to have the "Content" box and the "Justify" box being shown, but not the "...
orange's user avatar
  • 8,252
-1 votes
1 answer
55 views

Content not visible during scorling in Angular component

In Angular, I have three components header, lefpanel and router-outlet for all other component data/page need to display. The initial component introduction have some contents, but only partial ...
Reegan's user avatar
  • 347

15 30 50 per page
1
2 3 4 5
1518