Quantcast
Browsing all 1307 articles
Browse latest View live

Background color shrinks when trying to make it responsive, i would also like...

@import...

View Article


How to vertically center the content section of a PrimeVue Panel?

I am using the PrimeVue Panel element and tailwind.I want the content area to be vertically centered. I do not want the header to change, only the content area.I have tried putting flex items-center...

View Article


Image may be NSFW.
Clik here to view.

Tailwind CSS "justify-center" works if used with "flex-row" but doesnt work...

I was recently building a website using NuxtJs and ran into a problem: I cant center components in a that are in a flex column. but when i removed the "flex-col" class everything seemed to work...

View Article

Image may be NSFW.
Clik here to view.

Align 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 Article

CSS: 1 parent + 2 children. Is it possible to have the image grow wider than...

I am trying to make a dynamic image/sibling size, with flex-wrap, where by the image can be of varying aspect ratios. The issue is wide images. The behaviour I am seeking is as follows:<div...

View Article


flexbox shrink does not work as expected with text content [duplicate]

I created a simple layout with two flex containers.Both have an implicit flex-shrink: 1 like the default value should be.So I expect, that flex-shrink will shrink down content that "overflows" the...

View Article

flexbox doesnt show my numbers horizontally [duplicate]

enter image description hereThought this would show the numbers 1,2,3,4 in the progress-container next to each other but it doesnt.What am I missing here? Must be something wrong with my understanding...

View Article

How to make child div wrap before its flexbox parent container wraps?

I am trying to have a the last div in the row wrap within itself before it gets wrapped to the next line.<div class="flexcontainer"><div class="col1">this is text</div><div...

View Article


2 column layout with flexBox on React Native

I'm trying to do a two column layout in React Native from a list of items. It only seems to work if I define the width of the items, I would like to define just a percentage of the parent width (0.5...

View Article


Image may be NSFW.
Clik here to view.

Get the number of elements in the first row of a flex element

As I asked in the title of the question, is there a way you can get the count of elements in the first row of a flex element?Below is a picture showing my problem.I need the amount of pictures before...

View Article

Items-center not working in tailwind nextjs

"use client";import Link from 'next/link';import { usePathname } from 'next/navigation';const Navbar = () => { const pathname = usePathname(); return (<nav className='min-h-10 h-12 bg-black...

View Article

How do I make div class of images responsive? [closed]

I'm trying to make a horizontal layout of 5 images side by side equidistant, and to be able to wrap over to the next line as the browser size changes. I want to use flexbox/I want this to be responsive...

View Article

Image may be NSFW.
Clik here to view.

BULMA: How to get equal width for first column? Only by using a table?

building a web page using Bulma I want to display several events in this way:<div class="card" style="background: lightgreen;"><div class="card-header p-4"><div class="is-flex...

View Article


2D flex layout: row wrap jointly with column shrink

in the first code snippet below I show a layout using flex-flow: row wrap which has desirable layout properties but can exceed the maximum specified height of the container. The second code snippet...

View Article

Image may be NSFW.
Clik here to view.

Why does flex-box div not respect parent height? [closed]

This seems really straight forward and I guess I must be missing something quite obvious, but why does the flex div here not respect the 300px set by its parent?<div className="max-h-[300px]...

View Article


Mantine - Displaying a list of results until reaching parent height and then...

I am developing an web app that should fill 100vh and 100vw of the monitor.The app itself should not scroll vertically or horizontally, but individual components/divs inside the app are allowed to...

View Article

Flexbox with flex-wrap leaves undesired empty horizontal space [duplicate]

in this example:https://jsbin.com/sehuqowuca/edit?html,css,outputif I resized the view to be between 508px and 334px there is a horizontal space left and I can't fill it because of item2 height taking...

View Article


Image may be NSFW.
Clik here to view.

How can i stop CSS Grid cells from expanding due to text content?

SO i've attached a screenshot, i want my content cells to stop expanding past 600px in height because of the text when the screen is shrunk resulting in the odd design view. Instead i would like the...

View Article

CSS: How can I size an object relative to its parent object

I am creating a calculator using raw html, css and js and am in the process of designing the calculator itself. However, I am having the issue of sizing the buttons in a way that they remain responsive...

View Article

How can I size an object relative to its parent object

I am creating a calculator using raw html, css and js and am in the process of designing the calculator itself. However, I am having the issue of sizing the buttons in a way that they remain responsive...

View Article
Browsing all 1307 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>