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

Weird anchor tag behaviour

can anyone explain me why this issue is occuring ??? even after setting background-repeat the img is somehow repeating whernhover over it where i just want to change the color from white to a linear-gradient

Why does the eventListener just works on the first occasion?

So from what I know, however many times I trigger the eventListener, it will always fire an event. Why does my eventListener does not do this? It doesn't even listen for it twice, but I have not set the option
element.addEventListener('click', () => {},{once: true})
element.addEventListener('click', () => {},{once: true})
...

Pop up help

I want to do something so that if you accept the 'Accept Cookies' button, then the popup won't show up again if you refresh the page. But if you reject it, then it will keep appearing. I think I have to use local storage for that. How can I do so? https://codepen.io/saad-shehzad-the-bashful/pen/YPzyLmJ...

Need help to add images to HTML

<!DOCTYPE html> <body> <img src="mainpage.jpg"> <img src="secondpage.jpg">...

Grid/Flex positioning - Image Grid?

It's basically there, but for some reason I have a lot of space on the right, but no space on the left? ```js <template> <div class="shopImages">...
No description

background-image file path using Sass

Hello, I have a question about image file paths with the background-image CSS property using Sass. Locally, this file path works: 
background-image: url(‘/img/chicago-500.webp’);
background-image: url(‘/img/chicago-500.webp’);
...

Fixing Sticky Table Header with Horizontal Scroll Issue

I have a fixed menu on the left side of the viewport, which takes up the full height, and on the left side, there's a table. The table's data loads automatically as you scroll, and it has both a header and footer. The problem I’m facing is with the table header. The header stays sticky at the top when scrolling vertically, but when I try to add horizontal scrolling by setting overflow-x: auto on the .content class, the sticky header is no longer fixed at the top. How can I solve this issue and make the header sticky while still allowing for horizontal scrolling?...

Profile Picture Upload semicircle Input

https://codepen.io/ahmd_shajmeer/pen/GgRprYM I was trying to achieve the design from the image for user profile upload input , but the upload-btn is not getting the semicircle shape that matches with profile container radius....
No description

How do you see this can be implemented

for me i see a grid but too much seperators and other stuff, idk if it's only doeable in grid or not
No description

Adding a Hyperlink to a Nested Accordion Menu

Hello. I have a complex Information Architecture (IA), and have decided to use the following Nested Accordion menu... (Need to tewak it to make it accessible) https://codyhouse.co/demo/multi-level-accordion-menu/index.html (I have played around with this on my iPhone, and think it is a super easy way to navigate a lot of information.)...

🫨 Fix my crazy blur lags | Advanced

You guys know i love CSS only stuff, this time i wanted to focus on scroll animations, i want to recreate an image i found online and make it interactive The problem is, blur :D given the bubble gets rescaled during the animation quite heavily, it feels like it's trying to rerender the blurred segments every frame that makes it do crazy lags. https://codepen.io/Cubiq/pen/VworQqO?editors=0100...
No description

Maintainability and Alignment

I have two concerns for an exercise I’m working on here: https://codepen.io/Mcoding-300/pen/MYWwqQe note: some borders are included to see spacing/placement* 1) Is there a way I could have more control of how close my paragraph element (product description) is to my h3 element? I would like if there wasn’t so much space between them and that I could adjust it to taste. I don’t think I could even move the h3 anywhere if I tried either. ...

border ui issue

Do anyone know why the border edge curve have some like black pixel I don't know how to explain it , look at that image I marked.. Is it normal or my laptop has issues ? I use border:1px solid black; ...
No description

Can a popover content be lazy-loaded?

I have a very large image that I want to show in a popover (or a JS modal/dialog), but I want the loading of the image to be delayed until the user clicks on the button so it does not affect load time. But because my image is above the fold, it's loading it immediately even though it's obviously not visible. Any thoughts?

Slider activation causing sudden vertical scroll

So, I have this slider where everytime I click the slider-nav to change images, the viewport top automatically aligns with the product-slider-wrapper top. Basically, causes an abrupt vertical scroll to align their tops everytime you scroll between images with a click. The image with the front view of the glasses is what happens after I click one of the slider-nav links. What I've already tried to solve it, but failed:...
No description

Optimizing Responsive Design: Height & Spacing Feedback Needed :grin:

https://codepen.io/Redcaus12345/pen/gbOprrp Hey, I'm working on making this responsive. Does the height and font adapt well to different screen sizes? I know the video might not load on CodePen, but apart from that, do the spacings look good, or are there any improvements you’d suggest?Thanks!...

How do I approach this circle micro interaction

The arrow part, I'm able to recreate but the border animation I'm not able to. Please help...

Visualize a cubic-bezier online

Hi everyone Please is it possible to have a soft online who can allow me to see the curve on cubic bezier example if I put this
cubic-bezier(0,.83,0,1.49)
cubic-bezier(0,.83,0,1.49)
I will see the shape on this...

Subgrid for Masonry Layout? (Puzzle Pieces on a Grid)

Hello everyone, I am working on a math game in React where I'll have puzzle pieces that can be dragged onto a board with a grid. There is an intial container where the puzzle pieces start and I'm trying to make that layout also be a grid so the pieces can start already aligned to the grid even before they're picked up. For context, here's the game frectangles.netlify.app. Right now the left side of the screen where the pieces start is laid out with flexbox. I'm trying to change it to a grid where - There is a gap of 1 unit between each piece wherever possible - The pieces are densely packed together (I don't care about the order of them)...
No description

autofill input field bg Color change

In html input field when I starts typing and it gives some autocomplete suggestions of previous used values and when I click that , the input box bg Color change Like in the image I provided , normally the input box bg is Color is transparent After I select or hover , it changes the bg Color to white...
No description
Next