Quantcast
Browsing all 1307 articles
Browse latest View live

Container grid size with Flexbox and (media query) Javascript

I do Etch-a-Sketch - https://www.theodinproject.com/lessons/foundations-etch-a-sketch . But I want do something more than the assignment.I need do this ONLY with Flexbox and JavaScript (without CSS...

View Article


Kubuntu 23.10 Set keyboard backlight always on in Lenovo Ideapad flex 5 [closed]

I'm really tired of fading down after seconds of inactivity keyboard backlight...I've tried:xset -led 3i've searched all over internet - lenovo support is awfuli've asked openai - no luckHere is my...

View Article


Creating a grid with same cell size but image can take multiple cells?

I thought I am trying to do something simple, but I can't figure out how to do it.I will provide the playground link at the end: I want to create a grid like view where we have a given amount of cells....

View Article

Image may be NSFW.
Clik here to view.

How to properly resize single row/column in flexbox

Here is what I have:And here is what I need:is there a way to set second item height to max window height without setting "height" property?My code in React.jsreturn (<div className="App" style={{...

View Article

Image may be NSFW.
Clik here to view.

Native android component in React Native doesn't have his own space like height

I'm trying to implement a native android component written in Kotlin and XML for react-native.Kotlin class:class AffirmButtonManager( private val callerContext: ReactApplicationContext) :...

View Article


Replicating calendar layout from leetcode with flexbox but gaps are uneven...

I'm trying to replicate the calendar feature from leetcode's profile page, as it is hereafter. [\[calendar feature from leetcode\](https://i.stack.imgur.com/OMUSJ.jpg)][1]It's done with svg so the...

View Article

flex-flow: column wrap, in a flex box causing overflow of parent container

I have this scenario:https://jsfiddle.net/b6zcdgf7/.container{ display:flex; height:3em; border:solid thin blue;}.section{ border:solid thin gray; display:flex;}.section.horiz{}.section.vert{...

View Article

Image may be NSFW.
Clik here to view.

How to make a three column, dynamic height grid with css [duplicate]

I'm trying to make a view for my website for reviews. Some reviews are longer than others, so the div containers of these reviews are going to be taller than other div containers. I've attached a...

View Article


single Read more/read less button working for 2 flex items with text in a...

Im having a problem. I am by no means a professional, yet I find myself having to do a simple bit of webdesign.The problem is, I cant seem to get a read more/read less button and function to work on...

View Article


Why is child with "min-height: 100%" taking no space, when parent clearly...

I have a section element that has its min-height set to 100%, but its not taking up any space.The parent (main) clearly has a height of 525px.I don't know if its relevant, but the parent is a child of...

View Article

Div is not floating right, problem seems to be linked to the CSS already in...

I am currently attempting to make a simple header with HTML and CSS. I have encountered a problem where my button list is not floating to the right, giving the site an odd appearance.I tried floating...

View Article

Placing a CSS grid layout inside a flexbox results in a broken layout only in...

The problem is basically stated in the title, and it occurs only under these conditions:parent element is display: flex; (or inline-flex), flex-direction: column;, and flex-wrap: wrap;child element is...

View Article

CSS dynamic layout for mega menu that reads in rows or columns depending on...

I'm doing some prototyping for a mega menu where the menu items should be displayed "smart" where, depending on the number of menu items, they would read either as a row or columns.The menu items would...

View Article


Responsive image-copy module where the image maintains its aspect ratio and...

I feel like I'm missing something obvious here, but I've tried everything I can think of with flexbox and grid. I have an image next to a block of copy.As the viewport widens, the copy cell gets wider...

View Article

Tailwind - How do I wrap flex cards that have a class of relative without...

How do I place flex cards created in Tailwind that have the following class side by side in columns of 3 and rows of 4 without their original shape changing?class="relative isolate flex flex-col...

View Article


Image may be NSFW.
Clik here to view.

Adjusting positioning of items in a CSS grid based on contents

I have a CSS grid with three elements in it. A header and two content areas. My grid is defined as having two 50% width columns.my-grid {display: grid;grid-template-columns: 50% 50%;}What I am trying...

View Article

How to make my HTML code responsive? Does it need flex code or responsive code?

so I'm making a neocities and I'm relatively new to HTML (but I'm picking it up quick), so I'm getting a lot of help from the internet lol. I've been grinding on it for about a week now. Right now, my...

View Article


How do I add a border between two flex items? [duplicate]

I'm trying to add a border between two row flex items, however whenever I add one, the flex items stay in top of eachother instead of being next to eachother, here is an example:This is how I want it...

View Article

Make flex items overlap

I'd like to show a horizontal series of a unknown number of playing cards. To do this, they will have to overlap if there are too many. I'm having trouble convincing a flex box to overlap the cards...

View Article

Image may be NSFW.
Clik here to view.

How to keep 1:1 aspect ratio for the child canvas element?

I have prepared a simple test web page at Github (using the main.css file) for my question:In a vertical flexbox layout I am trying to use ResizeObserver to watch a parent div element with flex-grow:1...

View Article
Browsing all 1307 articles
Browse latest View live


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