How to merge flex columns into larger columns to prevent overly stretching?...
I have this situation where some columns are really large and others are smaller and I would like to merge these smaller ones not to waste space.The container div has flex direction row and the columns...
View ArticleHow to add equal vertical space to all h4 tags inside different child div but...
body { font-family: Arial, sans-serif; margin: 0; padding: 0;}.image-container img { display: block; max-width: 100%; height: auto;}.container { margin-bottom: 3px; text-align: left; margin-left:...
View ArticleProject landing page (freecodecamp) pricing design
I am working on building a project landing page from freecodecamp learning site. I have to design the following partNow, following is my HTML and CSS code for this part..price-tag { background-color:...
View ArticleFlexbox gap workaround for Safari
I finished my website but I didn't realize that safari doesn't support the flexbox gap. Is there a way around this without having the mess anything up? This is mostly for my media queries.<div...
View ArticleHow to overlap flex items in a fixed width?
The final result I want is this and the result I am able to obtained is this.Basically I want the cards to overlap in a fixed width, when it is overflowing its parent.And when it is not overflowing, I...
View ArticleFlexbox not working on iPhone, even though I'm using -webkit prefixes
I have a main page container, in which is a container for an image and a div that has text that is to be superimposed on the image and centered.For some reason I can see flexbot effects (shrinking)...
View ArticleHow to Move a Flexbox Child Element to the Left Without Affecting Other...
I'm a student working on a responsive header layout using flexbox, and I'm encountering an issue. When I try to move the logo to the left by a few pixels using 'margin-right', it also affects the...
View ArticleCSS to align ul menu to the right inside flexbox
My codepen has a logo image on the left and ul menu on the right - after the menu finishes there is empty space to the right of the menu - how do I tell the menu to align to the right so that the empty...
View ArticleHtml flexbox and media query [closed]
flexbox expected sizePlease see the above picture. This is a flexbox styled 3 cards in a row. But when i resize to the smaller screens the left and right cards cut off from both sides as shown in...
View ArticleIOS (Safari/Chrome): div with flex-direction:column-reverse has wrong scroll...
I got a simple div with flex-direction:column-reverse and a button, which adds content to the given div.In Chrome, Firefox, Edge on Windows and in Chrome and Firefox on my Galaxy S21 Ultra I have...
View ArticleAbsolute positioned element slightly off-center in div
I've seen other questions asking about why there centered div is slightly off-center, but this is different. Questions are saying to set padding to 0, but it isn't working, and I think it could be due...
View ArticleGrid of same-height items with conditional "banner" outside of item without...
I'm trying to achieve following grid:HTML structure is following:.container { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));}.container > article { display:...
View ArticleHow do i make it so that the cards are placed below each other than all of...
The cards are stacked together. I want to have it so that after the 4th card, the next one comes below the 1st one and so on. I used flex to get them in a line but do not know how to get them under....
View ArticleHow can I prevent the container from expanding while making the grid boxes...
I've been trying to code etch-a-sketch like page but I can't make the container's size to be fixed while making the grid boxes insided shrink so they all fit.It works well when there is 16 x 16 grid...
View ArticleThe flex item extends beyond the boundaries of the flex container
I have a flex container with the flex-direction set to column.Let's assume there are two flex items and the second item contains additional containers with text.I don't want the second flex item to...
View ArticleElement attaching to the bottom of container
I'm trying to center a dot inside a div. When I try margin-bottom: 50%;, it pushes the other stuff around. I've also tried setting justify-content and align-items to center..slider{ width: 20px;...
View ArticleWhy does height:100% work on child div when parent div has no set height...
There are many discussions about why height:100% doesn't work when parent div has no set height.But this time I found it weirdly does work with the below codes and i don't know why.I don't set the...
View ArticlePHP variables changing position of HTML headings [closed]
I'm creating form with choosing buttons:But when I checked some options all the headings are going up and down:PHP:echo '<div class="flex-container flex-response" id="responseform" title="Kliknij,...
View Articlechild div overflowing from the parent div(flex-box) [closed]
I want to haveA parent div which contains two child divs(div.parent>div.child1{this is longer content}+div.child2{any content})i want one child to have width exactly to its content and one child to...
View ArticleHow to use angular flex-layout in angular 18
I have a large application built in Angular 17 that I've recently updated to Angular 18. Since the flex-layout packages do not officially support Angular 18, I overrode them to make npm install...
View Article