22,767 questions
0
votes
0
answers
15
views
CSS Flexbox Issue
I have a container with multiple items displayed using CSS Flexbox, with flex-wrap: wrap and justify-content: center so that the items are visually centered and wrap responsively. Each item has a ...
0
votes
0
answers
23
views
How to vertically align a GrapesJS component without converting its parent to flexbox? [duplicate]
The issue I’m facing is about vertical alignment inside a GrapesJS component, but the problem can be reproduced even without GrapesJS.
Here is a small, runnable example showing the exact behavior:
<...
-2
votes
0
answers
51
views
What causes a flex item to sit next to another instead of stack, when its height is 100%? [duplicate]
In this sample HTML, the child flex item "B" sits next to "A" despite the parent having a flex-direction of column.
Removing height: 100% of child item "B", changing the ...
0
votes
1
answer
50
views
Extra space on the right hand of bootstrap header
I have this little issue but I can't figure out what it is, could someone take a look and enlighten me - basically, I'm building a website with bootstrap and can't figure out why do I have this little ...
0
votes
1
answer
95
views
Problem using flex container with mathjax inline math
I am using the solution given in How to reduce vertical space between items inside flex container? which worked well.
But when I added mathjax related item, now alignment is broken for some reason.
I ...
0
votes
0
answers
31
views
Dropdown menu from a navbar with overflow-x scroll and overflow-y visible [duplicate]
I’m working on creating a navigation bar that scrolls horizontally. So far, everything is going well. However, when a tab opens a dropdown menu, I want to disable vertical scrolling while keeping ...
-3
votes
1
answer
67
views
Flexbox on text not wrapping to new line [closed]
I'am having troubles to add a flexbox with text that wrap when width is not enough large.
For example, on large page :
Red Blue
And on small webpage
Red
Blue
Actually :
A horizontal slider is added,...
0
votes
1
answer
73
views
keeping text inside of a text box
I am very very new to coding. Right now, I am having issues with keeping the text within a text box when I want 2 different size boxes stacked on top of each other.
I need the text to remain inside ...
1
vote
1
answer
129
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 ...
0
votes
1
answer
47
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', ...
1
vote
1
answer
102
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 ...
1
vote
0
answers
98
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 ...
2
votes
0
answers
36
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 ...
0
votes
2
answers
85
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 ...
-1
votes
1
answer
58
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 ...
1
vote
1
answer
110
views
Bootstrap flex container shifts content when inserting SVG
I have a flex container with inline elements. In this example everything is vertically-aligned properly...
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="...
0
votes
1
answer
42
views
Responsively size an inner container within limits
maybe it's just too late on a Friday but I can't get this fixed and can't find an example and I feel like I'm going in circles.
I have a row of three containers: A, B and C, where B is a wrapper for ...
0
votes
2
answers
76
views
align elements in 2 rows in flexbox
I have 5 Elements I want to align in 2 rows, the first row with 3 elements with the same width and in the second row, one element 2/3 width and the other one 1/3
<div class="container">...
0
votes
1
answer
86
views
CSS: Maximize DIV and keep aspect-ratio
I want my canvas to be as large as possible, but keep the aspect ratio. It should work if the screen gets less wide as well as when its height decreses.
Basically, I want the screen at the top of the ...
0
votes
0
answers
38
views
FlatList item text won’t wrap unless I set flex-shrink: 1 on the auto-generated cell wrapper in DevTools. How can I do this from code?
GitHub Repo
I’m building an Expo (SDK 50) app for FullStack Open part10 and testing on the web target. Each row in my list is a horizontal layout: an avatar on the left and a right-hand column with ...
0
votes
2
answers
72
views
Images overflowing beyond div instead of shrinking
I pretty new to html coding so I'm not sure what I'm doing wrong, but I'm building a website with an image gallery on one of the pages.
I wanted half of the gallery to be a flex row with wrapping (...
0
votes
1
answer
84
views
React Native FlatList: How to vertically center content below a fixed header in renderItem?
I'm building an intro slider in React Native using a horizontal FlatList. Each slide consists of:
A title aligned at the top of the slide
An image and description block that should be ...
0
votes
2
answers
66
views
Sheet component not displaying when using flex flex-col h-screen in layout
I'm learning React + TailwindCSS + shadcn/ui.
I'm trying to open a Sheet component (a popover/modal), but it doesn't show up when I wrap my page content in a flex container like this:
function App() {
...
-1
votes
2
answers
73
views
Allowed propertyName for Javascript setProperty [closed]
I'm using javaScript setProperty(propertyName, value) a lot and it works perfectly until I want to set properties like justifyContent when using flexboxes.
It does work with the propertyName '...
0
votes
0
answers
15
views
CSS make each row start in the same position on each item [duplicate]
For example I would like the "reviews" row to be in the same position on each li no matter what size the heading tag is
Unfortunately using min-height on the heading isn't an option as it ...