Kevin Powell - Community

KPC

Kevin Powell - Community

A friendly place for developers to meet other devs, ask questions, get help, and just have a good time ๐Ÿ™‚.

Join

front-end

resources

back-end

ui-ux

os-and-tools

How to make the height take remaining space ?

Hi everyone! I'm working on a droppable area inside a MUI Stack component that follows flexbox rules. The structure includes filter icons and the droppable area, both placed inside the Stack. I want the droppable area to take up the remaining available height in the container....
No description

Change colours when required fields complete

Is there a way to change the form background and input background and input text colours once all the Required fields are complete. even though not all of the fields are completed and before the submit, all with CSS? Regards Pete...

astro

Regarding application to ViewTransitions in Astro. (astro์—์„œ ViewTransitions์— ์ ์šฉ์— ๊ด€ํ•˜์—ฌ) If you apply ViewTransitions in Astro, is it possible to solve the problem that the java script in the menu runs on the first page, but does not run when you move to another page? (astro์—์„œ ViewTransitions๋ฅผ ์ ์šฉ์‹œํ‚ค๋ฉด, ์ฒซํŽ˜์ด๋‹ˆ์—์„œ๋Š” ๋ฉ”๋‰ด์˜ java script๊ฐ€ ์‹คํ–‰์ด ๋˜๋Š”๋ฐ, ๋‹ค๋ฅธ ํŽ˜์ด์ง€๋กœ ๋„˜์–ด๊ฐ€๋ฉด ์‹คํ–‰์ด ๋˜์ง€ ์•Š๋Š” ๋ฌธ์ œ ์ ์„ ํ•ด๊ฒฐํ• ์ˆ˜ ์žˆ์„ ๊นŒ์š”?)...

why does my content keeps getting smaller instead of adaptable to the device's width

here's my website on 2458px maybe the second image is on 1026px i set the break point to 1024px ...
No description

Multi-input setup for license key

I'm making an "activate license" screen with an input for the license key, the license key itself is 5 sets of 6 characters separated by dashes. I'd like to style it as a series of inputs where each segment is written, with the dashes already built in, and focus moving between the segments as you type or delete, and a paste of the license key fills the inputs and ignores the pasted dashes. Does that make sense as a method? Should I do it in one input but style it to look like many? Is there a secret third option I'm missing? How would I even implement it? I'm currently running with svelte but I feel like this would require some vanilla js dom manipulation...

3 column layout with specific item on hover styling

Hello everyone! I am trying to achieve the following: - 3 column layout, where on tablet it is 2 columns and on mobile 1...
No description

How to reproduce this card hover effect

Anyone knows how to replicate the shown hover effect for cards?

Javascript not working

I want the "valid_email" to appear only when the user types in the correct email https://codepen.io/saad-shehzad-the-bashful/pen/JoPwQgN

Mobile Layout not taking full space

I am currently working on a dashboard project that have layout issue am facing while mobile view. I have provided both desktop view and mobile view. On mobile view the main content element should take the space what left by the collapsed sidenavbar. Also the sidenavbar has contents that still not showing , on scrolling that sidenavbar is closing....
No description

Problem with the responsiveness of website for and images

David: Hey sorry for disturbing I am having a big problem with respsonsiveness of my website, the image and overscroll-x:auto; keeps on messing up sorry for this disturbance but pls to understand me more can you check out https://www.jumia.ng website to understand what I mean. When you reduce the device width both the images will also shrink with it. The main Issue I am having is with the ero section, when I make it flex and overflow-x: auto; it will just spoil everything

Have img match parent's height with set aspect ratio

Hey so I have a square image, a qr code, that i want to match the height of the parent it's in. The parent's height is intrinsic to the buttons placed as the first child Tried a bunch of stuff but i can't seem to let this image follow Now i did get it working with background-image, but i wonder if this is also possible with html img tag ...

CSS @property or :root?

Could/Should I use @property indistinctly from declaring CSS variables using :root? Is there any downside to using only @property? Thanks in advance! ๐Ÿ‘...

What do you think about my html?

Is it written well? If not how can I improve it? Are my class names written well? I had a tough time with it. ` <main class="main"> <section class="design-description-1">...

Am I using the BAM naming convention correctly?

If so, doesn't this create a very long chain of double underscores? making it inefficient to type and read? ` <aside class="aside"> <div class="aside__block">...

Need help with hovered item

When I hover to the three dots the background is showing on three dots I want the background to still be active if I am on edit go live button too. This is the link of the code https://codepen.io/tobygxgr-the-sans/pen/OPLrRdy...
No description

Second dialog element not working and I don't know why

Hello I am trying to make modal images with the <dialog> element and I can only get one singular image to work with it. Any idea why? https://codepen.io/davesamuels1998/pen/MYgzxrY...

is it fine to explicitly set height: 120px for an image?

Kevin said don't use heights and don't use pixel units. I want to create a grid of cards where the image is the same height and width for every card. Each card has an image and some text right below it. Unfortunetly all the images are either too tall or too short. I did manage to get a hold of the width by using grid-template-column: repeat(auto-fit,minmax(300px,1fr)) but I'm not sure how to set the height. I was thinking of setting grid-auto-row: 500px or something but I remembered that setting height and px are bad. Edit:...
No description