How to create some kind of box over two columns that just sticks to the top...
I have the following Problem. I want my whole site to fit on a screen (no scrolling needed) and split into right/left. On the top I want some kind of header with links to the subpages, something like...
View Articlehtml elements ordered from top to bottom, but stacked from bottom to top...
Imagine a list of items where a maximum of four can fit across the width of the available space. Where there are six items, I want it to look like this:[1] [2][3] [4] [5] [6]Where there are 7 items, I...
View Articlefull screen height flatlist items
I am trying to implement a FlatList with full screen size items, but haven't been able to do it without manually setting the items height based on the available screensize and I was wondering if it was...
View ArticleHow to stop flex-box from pushing other elements out of the container?
It's a bit hard to explain, but consider a flex header with a menu and then something else on the right which is fixed width. As the window size shrinks in width, there is less room for the menu....
View ArticleMain Content Layout Breaks When I Add a New Section
Whenever I try to add a new section, my main content breaks, and I’m having trouble fixing it. I asked ChatGPT for help, but it’s been suggesting some weird solutions that I know would break my code...
View ArticleCSS 100vh offset by header
I have this pen here: https://codepen.io/anon/pen/wPdrodAs you can see (at least in Chrome and Firefox), there are 2 vertical scroll bars. There should only be the inner one, as the header should...
View ArticleUsing flexbox to change layout at different breakpoints
I'm trying to arrange a series of elements in a different layout for "mobile" screens vs large screens. Basically, on mobile screens I want a title to span the entire width at the top, centered....
View ArticleHow to make my Fake OS website more responsive and make the elements maintain...
I’ve searched quite a bit, but none of the other resources matched the specific CSS structure I have. No matter what I tried, my layout never became responsive. I’m very new to CSS and still learning...
View ArticleCSS - Need help placing the first item of a flex container half way on top of...
I'm having trouble with the positioning of a container. Here is the wireframe I created in figma that I want to accomplish: figma wireframe reference photo"Portfolio" and the navigation next to it are...
View ArticleCSS Grid create new rows for each column dynamically if needed
I am working on a responsive layout, in the larger screens it will have 3x3 layout. The 1st column will be filled first. Once there are 3 items in the first column, the 2nd column will start to fill....
View ArticleCSS flex element not shrinking when text wrapped [duplicate]
I have a flex container with an h2 and a link. At certain screen sizes, the text within the h2 wraps - which is fine. However, when the text wraps, the h2 still uses as much space as possible. You can...
View ArticleFlex box in MS Edge is not resizing on window resize
I have a flexbox that works without issue in FF.In Edge, (and I assume Chrome) the flexbox does not resize when the window is resized.I tried every solution I found on the web, no joy.I added all the...
View ArticleTailwind: add gap to flex without breaking row
I have a simple flex div with many children. I want 3 elements on each row using tailwindcss.Is there a way to accomplish this using just tailwindcss classes? I tried with gap-4 on my parent div and...
View ArticleWhy are the borders in my flexbox layout not lining up when I switch screens?
I'm working on an app that allows users to mock up the structure of a website. In drag-and-drop mode, the app shows connecting lines to make the structure of the site tree extra-clear. I used div...
View ArticleCSS flex - stretch or shrink image to fill remaining vertical space but not...
I realize there are other similar sounding questions, but I couldn't find one to help me solve this problem.--I am working on a layout of items in CSS and I am trying to achieve the following:Each item...
View ArticleVertical Align Center in Bootstrap 4 [duplicate]
I am trying to center my Container in the middle of the page using Bootstrap 4. I have been unsuccessful thus far.I have built it at Codepen.io so it can be played with.var currentAuthor = "";var...
View Articlejustify-content: flex-start is not working
I was trying to align all the elements in the website to have at most 3 elements in a row and have them align to the left.But I got the following result. (website image)I used Ruby on Rails to create...
View ArticleWhy does the text not center vertically with textAlign nor with...
I have only been programming with React Native (managed workflow with Expo) for about 2 years. But flex and Text centering still gets me.I have created a snack that demonstrates my...
View ArticleThe child elements of the sticky element cannot be horizontally centered...
When .table__header--inner sets justify-content: center;, its position is weird. It doesn't seem to know which div to use as the parent container to horizontally center.What happened? This should be...
View ArticleWhy are overflowing flex items shown in purple stripes?
I am learning more about the Flexbox inspector in Chrome. So far as I understand when I hover over a flex container in the inspector the purple stripes indicate the available space within the flex...
View Article