CSS - 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 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 Articlebasis-[800px] prevent element from shrinking in flex layout
I have the following element:<div className='mx-auto flex flex-col-reverse gap-5 md:flex-row md:items-start'><div className='flex min-w-0 shrink grow-0 basis-[800px] flex-col'>...
View ArticleWhy is my flexbox not working correctly?
I have three divs in a row. The first should be a fixed with, the second should expand until it hits a "max-width", and the third div should take up the remaining space. It works correctly until the...
View ArticleHow can I create a grid that meets custom specifications?
I have an ad system with two categories: TOP and BASIC. Ads are loaded from the backend in random order, returning a paginated object where TOP ads come first and BASIC ads come after. I want to...
View ArticleBootstrap 3.3.7 "row" causing horizontal scroll bar
Ok ok, I know. This question has been asked a lot. But, so far, I have not found a working solution. I boiled my page down to nothing but this:<div class="row"><div class="col-sm-12">...
View ArticleMedia Query not working for site hosted on Github Pages
I'm Building a new single page site and for some reason my media query doesn't seem to be working? If I resize the browser it works fine, but if I visit the hosted site on GitHub pages on mobile I...
View ArticleWhy is this code, with display flex, justify-content center and align-item...
I am learning JS and one of the tasks I do - is to code simple JS, HTML and CSS oriented code just to help me learn JS and be able to create certain JS web elements and projects so that when I feel I...
View ArticleHow can I make a responsive taskbar like Windows that fits unlimited app...
I am building a desktop-like interface in HTML/CSS and trying to recreate a Windows-style taskbar.I want the taskbar to behave like in Windows:When many windows/apps are open, the taskbar fills up with...
View ArticleWhat's the difference between align-content and align-items?
What is the difference between align-items and align-content?
View ArticleHow to not overstretch the last line in a flex container with align-items:...
I have a flex container with flex-wrap: wrap and align-items: stretch so that children gets stretched when the container is resized up until the next child fits.The problem is usually the last line has...
View ArticleHow to offset flex item?
I'm developing a pure flexbox grid framework called flexboxes. I'm looking to implement a way to offset flex items by a particular number of grid columns in any flex-direction. This is possible with...
View ArticleWrapped anchor tag around inline-flex container - text not underlined in Firefox
I'm trying to nest an inline-flex container inside an anchor tag (IE11 made me do so). Unfortunately I get different results on FireFox compared to Chrom for example. On Chrom the text remains...
View ArticleCan an inline-flex element adjust to the width of a vertical-rl child element...
I have a div with display: inline-flex that contains a div with vertical text using writing-mode: vertical-rl. In Chrome and Safari, the outer div expands to fit the width of the inner div, but in...
View ArticleAlign section heading with the first content item instead of centering in...
I'm working on a section layout where I have a headline and a content container using Flexbox to center the content horizontally. The content container holds several media cards.<section><h2...
View ArticleHow to shrink boxes along the cross-axis of a flex layout with scroll bars...
Consider the following markup which is also available via this Fiddle:<!DOCTYPR html><html lang=""><head><title>Flex Box Test</title><style> * { box-sizing:...
View ArticleWhy do my label and node overlap when I make a loopback (self-connection) to...
I am using jsPlumb v2.1.2 (Community Edition) along with farahey.js for flow layout in my project. Since the project is already live, I cannot change the version.The issue I am facing is that when I...
View Articlebootstrap 5 space-between misaligned
I have some HTML/CSS where I am trying to make use of Bootstrap 5.2 and justify-content-between to push 2 buttons out to the edges of the container.<div class="container"><div...
View ArticleTrying to get div on same line with using flexbox
I am trying to arrange an image next to some text. I was able to accomplish this with font awesome icons and text, but two images I was unable to get an icon for, so I am using images. I can't seem to...
View ArticleWhy can max-width: min(100%, 30em) make the container take up all available...
I was trying to be smart and applied max-width: min(100%, 30em); to my elements that contain text. The result is that under some circumstances, the container of such an element takes up all horizontal...
View ArticleFlexbox justify-content:space-between doesn't work properly with...
I'm facing this issue:I'm looking to use position:absolute, to adjust the span.materias__item-detalle, to bottom of the div, without caring the size that the h4 occupes.But, I also want to use flexbox...
View Article