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

https://codepen.io/Redcaus12345/pen/wBwVBbm

Hey, I built a slideshow and wanted to ask if it's responsive enough or if anyone has suggestions for improvement. Is there a better way to do it? I know the images aren’t loading. 😊...

js question

https://codepen.io/etrbbr/pen/LEPoMQZ Hey guys. When I add a new <li> element, an <hr> line should appear after each one. But the problem is that when I add it via JS, it works incorrectly. How it should look – in CodePen before adding new elements....
No description

responsive-problem with the scaling of 2 images with position absolute on

hi there , if i resize the window the other on is bigger than the other one and they are not in same position as before . if anyone had an idea what i can do ? https://codepen.io/Styxio-frik/pen/qEWzwGZ...
No description

Failing to animate(using transition) something from display none to block on hover

So this is some very simple code I have to replicate the problem I am having in my main project: ``` import "./Test.scss" const Test = () => {...

Why is the Checkbox component "jumping" when hovered on/off?

I've created the Checkbox component in React, but when I hover over it, the component appears to "jump". Why does it happen if the height of the component doesn't change? https://stackblitz.com/edit/vitejs-vite-fkhdvvb4?file=src%2Fcheckbox%2FCheckbox.tsx...

https://codepen.io/Redcaus12345/pen/wBwLqxm

Hi, I'm working on a slideshow using JavaScript that should also work on iPads and Phones, but I'm having trouble with the mobile display. Do you know how I can code it to function properly on these devices? Any tips would be appreciated!

Center a div

This is my solution for challenge number 1. My question is that when I set the style
margin: 0 auto;
margin: 0 auto;
the parent div is automatically centered horizontally . If I do the following it centered horizontally too:...
No description

CSS grid that's constrained vertically

Finding it pretty difficult to recreate this pattern tbh Each image needs a fixed aspect ratio (easy enough), but as the grid grows the content should be constrained by the grid height and overflow/grow horizontally if it needs to. Problem I've currently got is how the horizontal space is distributed between columns rn (2nd image)...
No description

js question

i am making to do app, and i cant figure out how to check if "goal" is confirmed. https://codepen.io/etrbbr/pen/LEPoMQZ i have one idea but i am not sure that is correct....

Best/Common Page width

There seems to be a million different suggestions for the best/most common page (content) width, what's yours? Regards Pete...

3D Perspective Strategy

Hi, I am having trouble understanding how 3d perspective is intended to work. The attempted css effect seems dependent on the screen size. The wider the screen the more intense the css results. Codepen: https://codepen.io/kevinmclane/pen/xbKNGXP Is there a correct dynamic approach or do I need to incorporate media queries?...

css questions

I’m a little bit confused about background images. Do I really need to use them as background-image, or can I just use an <img> tag and set position: relative? Also, I don’t like how background-image behaves when I resize the screen. ...
No description

Image masked with image wrapper in Grid..

👋 Hi All, I’ve been struggling with what I though would be a simple layout.. I am hoping to create a 2 column grid with an image that fills two columns and an image wrapper that uses “overflow: hidden; to reveal the image in just a single column.....
No description

Javascript logic help pls

https://codepen.io/saad-shehzad-the-bashful/pen/raBbdXg I don’t know how to come up with the logic or planning for this design. It’s a really common FEM project, and it’s really basic. However, I’m having trouble because when I click one button, I want the background-color: white; to apply only to that button. When I click another button, the white background should be removed from the previous button and applied only to the newly selected button. Then, when I click the submit button, it should redirect to another HTML file that says, You pressed 'the pressed button' out of five....

How to make a button seem more like a button?

I have a navbar with a hamburger here: https://thinking-boats.pages.dev/playground/ From the feedback that I have got from non-devs, the initial "close" svg doesnt seem like a button. How do I fix that? The first idea was a sort of clipping circle in the svg? Not sure how to add that.....

need help to implement it

https://codepen.io/etrbbr/pen/VYZNyxM The question is how to make it look like in the picture, where there is a large gray background section in the header, and this section overlaps part of the cards. How can this be done?...
No description

Resize block after text wrap

I want to create pricing list like on image. I use flex container on each line, inside are two text blocks and hr between them. ```css .option { display: flex;...
No description