Quantcast
Browsing all 1317 articles
Browse latest View live

I have a problem with the grid system in my scss, i have a template where in...

I have a problem with the grid system in my scss, i have a template where in div1 i have a banner that can occupy a different height but the problem is that in the second row, since i have...

View Article


How can I make the divs appear in the same line with the other columns?...

I want to make the divs all appear on the same line if they are on the same level in their own respective columns. This is a basic interpretation of what my template looks like, and I use vue to create...

View Article


How to make CSS grid where rows with fewer columns flex to fill?

Lets say I have a CSS grid where each row is comprised of 4 columns .grid{ grid-template-columns: 1fr 1fr 1fr 1fr; }Is it possible with CSS to specify that, for any row with less than 4 items, the...

View Article

Image may be NSFW.
Clik here to view.

React native text going off my screen, refusing to wrap. What to do?

The following code can be found in this live exampleI've got the following react native element:'use strict';var React = require('react-native');var { AppRegistry, StyleSheet, Text, View,} = React;var...

View Article

React Native absolute positioning horizontal centre

It seems that with position:absolute in use an element cannot be centred using justifyContent or alignItems. There's a workaround to use marginLeft but does not display the same for all devices even...

View Article


flex box in footer parts [closed]

So I making a bottom footer I want that div to placed at top right using flex, can someone help me with this?It currently looks like thisBut I want to make it like this<footer class="w-full h-96...

View Article

Image may be NSFW.
Clik here to view.

Flexbox item expand beyond container if place exists

Might be a dumb ask.This is what I have right nowPlease expect that the height of 3 can change based on its content and the height of the right items 1, 2, 3 and so on, have varied heights. Is there...

View Article

Menu Won't Display Flex [closed]

Ok, so I'm just trying to style this menu. I've set it up so that it's set to display: flex.Here's my issue, I'll open up the inspector and set the class for main-menu to display flex, the main-menu ul...

View Article


Flex box or table display? Trying to build a stretchy nav [closed]

I'm building a large left column navigation menu. I want all the link containers to take up the full vertical space of the window when resize, and the links themselves sit centered vertically in the...

View Article


Calculation of content-size of a flex-item that has padding [duplicate]

In this article on making equal columns with flexbox, the author mentions 2 cases where things get ruined if some flex-items have padding. So he has a container with a width of 600px, and 3 flex-items...

View Article

Image may be NSFW.
Clik here to view.

An 'in-built' Firefox flex-inspector missing or won't work

When calling 'flex-inspector' in Firefox through the icon no window comes as the one expected on the example from other browser.

View Article

how can i change the gap of only one element in a flexbox?

i am creating something with css flexbox and use gap to give spacing between elements but now i want to change the spacing of only one element like.container{ display: flex; gap: 20px;}.items{ width:...

View Article

Animated flexbox order to make a smooth scrolling infinite scroll

I'm trying to make an infinite scroll carousel. Let's say it has three items & the HTML is:document.querySelectorAll('.buttons .button').forEach((button) => { button.addEventListener('click',...

View Article


Image may be NSFW.
Clik here to view.

AntDesign TabPane min-height 100%

Using Ant.Design Tabs https://ant.design/components/tabs/How can I set styling on TabPane so that it's min-height is always 100% height of the window even when it's empty?Below example should cover the...

View Article

Image may be NSFW.
Clik here to view.

Why does Justify Content center is not working in this case? [duplicate]

I want to center these items using flex box justify content = center but it's not workingHTML:<div class="row justify-content-center mt-5 gy-5"><div class="col-md-2"><img width="70"...

View Article


Image may be NSFW.
Clik here to view.

CSS flex-basis not working when flex-direction is 'column'

My goal is to create a two-column layout with flexbox wherein the first column has two rows and the second column has one, like this:Setting flex-basis: 100% on the third item gives the desired effect,...

View Article

How can I change col/row behavior based on available space? [closed]

I have a set of cards, whose have their own cards, like this (i am using TailwindCSS btw):<script src="https://cdn.tailwindcss.com"></script><div class="grid grid-cols-3...

View Article


Text alignment in html and css

enter image description hereAs you can see the prices are not well organized how do I organise them in a straight line from top to bottom and also more them away from the drinksI tried using the...

View Article

Image may be NSFW.
Clik here to view.

Html/css flex: Preventing element from overflowing browser window

I'm trying to make a segment of a webpage where an image will appear on the left or right and directly next to it there can be text centered on its segment of the page (see image).However, the element...

View Article

How to use flex with lists in html?

I was trying to create my portfolio page. I have 4 subheadings (About, Resume, Blog and Portfolio). So I wanted to put these headings on top center of my div. So what I did was created an unordered...

View Article
Browsing all 1317 articles
Browse latest View live


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