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

help

Content On Select HTML With Border Jumps On Hover

I am cross posting a question I asked on SO about how to prevent content within a select dropdown from jumping on hover https://stackoverflow.com/questions/79616717/content-on-select-html-with-border-jumps-on-hover I would greatly appreciate it if someone could help me here or on SO with this question. Thank you!...

How to get started with UI/UX to create my own design

Hello, sorry to disturb you all, I want to create special logos/headings etc that I can include in my web pages. I don't really have any designer experience, can someone suggest any tool that I can get started with and try to learn how to use it please.

is splice a modern method in js

should i use it to remove an element from an array

Standard CSS Reset that Kevin Recommends?

Hello, I've searched on Kevin's website and on his youtube channels. Can anyone share a link to a Kevin's preferred current way to apply a "css reset" ? These are the resources that I have found: * https://www.youtube.com/watch?v=CAPo3HZBWS0 -- I think he identifies the "ideal" reset in this video but I could not find a link to the reset code. * https://www.youtube.com/watch?v=eWmDW4zEXt4 -- an extension to a reset to help animations, but not the full reset * https://www.kevinpowell.co/article/css-remedy/ -- this article expresses excitement about css remedy. Is css remedy the preferred way now? ...

SVG Text Mask

hello there i wanted to use a mask for my title but mask is kinda heavy like 450kb, when i use it for text mu whole website becomes laggy, perhaps is there any better way to apply mask for text (i'll use it for dynamic pages so i cant just export it like an image) i can also send a mask if that'll help ```html <h1 class="font-[Akshar] leading-none bg-clip-text text-primary-900 bg-transparent [-webkit-mask:url(/img/font-pattern.svg)_repeat_10%_70%] [mask:url(/img/font-pattern.svg)_repeat_10%_70%] whitespace-nowrap z-10"...
No description

How to use GSAP with remotion?

I want to use GSAP Split text animation and render it using remotion into a mp4

Can we modify user agent default styling?

Hello, I wanted to create a horizontal line (see the picture... it's not that visible though sorry :c). I wanted to set an outer container wrapping both the wordings My Profile , then use display flex thinking that when I will use the hr element, the line will be just beside My Profile and it will be like in the picture. But I didn't get this effect at all :c. The line when used being a child of a flex container seems to have "disappear" but it's still present in the DOM. I tried to change its color but no change....
No description

What is the difference when we use border and outline of none vs giving them a transparent color?

Hello, sorry to disturb you all, I have a question. I need to create a search bar. My search bar includes an input element. My question is, by default, input element has a border and an outline? When we focus on an input, what happens? What causes the "thickness", is it the border or the outline? So is it good practice to set everything as none instead of giving them a transparent color in the scenario where we want our focus not to be on the input element but rather on its parent container? ...

Is a true pure-CSS XOR blend mode possible in 2025?

As an old assembly-language guy, I think about the math in blend modes. And I was looking at today's CSS Battle Daily and thought it would be really easy and clever if I could toggle between foreground/background colors, by using the XOR of the two values. But mix-blend "exclusion" isn't really XOR and "difference" only works in one direction. It's not reversible like XOR. Just something I ponder over about once a year. 😸 ...
No description

Feedback on colors

Hi! I would appreciate some feedback on the colors of my website: https://3dbe4be8.fromtibo.pages.dev Thanks a lot!...

Difference between middleware, route handlers and regular function in express

Hello, can someone explain what is the difference between a middleware, a route handler and a regular function in Express please. I do have an answer (I think), for middleware, it's like a "middle-man" trying to modify whatever request or response. When we say it modifies response object also, what does it mean, from where does the object response come from? When we use functions like app.use(), this expect a middleware? Or even when we create a router, like express.route(), why we don't see the next parameter?...

When to use private custom props?

Really quick question: I use private props a lot --_private-property for anything that isn't global. I have a situation where there's essentially a grid page container that contains the whole page. I feel like that's essentially global so prefixing it with the private property doesn't make a whole lot of sense, but also I'll only be using it within nested classes / elements. Thoughts?...

Is there a way to make a modal close with just html and css

The modal will open up and can be closed via a exit button,but also by clicking outside of the modal window.;is there any way to do this with just pure html and css,no javascript?

dock location glitch

how to make this side by side
No description

What is the default behavior when we submit an HTML form?

Hello, consider the following code: ```HTML <form action="./submit_page" method="get"> <h2>Subscribe to our newsletter</h2>...

How does scope attribute works in HTML table?

Hello, I was reading a bit about the scope attribute in HTML table. From what I've understood, it "associates" a table header to a column, like: ```html <table border="1"> <thead> <tr>...

Can't login to https://learn.kevinpowell.co/

I have tried enrolling three times. But everytime I click dashboard it sends me back to the login page and then it says that my account doesn't exist?! Please help...
No description

why I'm getting this behaviour?

Targeting all labels with this in css label{margin-bottom:.5em} affects only the first two labels(first & last name) and ignores the email label, why it happens my html goes like: ` <form> <div class="first-row">...
No description

Why is there a flex gap around the first and last item in a wrapped row?

I have a flex row 1rem gap justify content flex-start, when wrapping it ends up being three rows. When it doesn't wrap, the first and last items are at the edges and there's a 1rem gap between columns and everything's fine. But when the row wraps, suddenly the first and last items are not at the edges - they have the 1rem gap around both sides of them. If I take out the gap while wrapping, it's also fine and aligns properly. But when wrapped, there's this noticeable gap at the front! Any ide...
No description