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

CSS Grid Help

Hello, I am having a stupid time trying to get my first grid to look right. When I load my page, all my grid elements are there but they are not in the right position. They are just listed row after row instead of being in an actual grid with a navidation side bar and two additional columns. I have been over my code countless times and can't find my issue. Additionally, when I go to inspect on my website the css code for my container does not appear but I have double checked that my naming is correct. I've added screenshots of all of the grid code, additionally you can see what it's doing at www.pergolaluxe.com. Any help is greatly appreciated!...
No description

How to create this shadow effect with css?

I want to create a card design for my portfolio website, but I don't know how to add a shadow effect as shown in the drawing.
No description

Add CSS classes along with js code in className attribute in HTML (React)

I'm new in writting JS in React so I'm having problems in adding my css clases "block lg:hidden". I tried to do it with parenthesis. The image shows the first line of code:
No description

how to do Forced Scroll in a slider

i saw a forced scroll on this agency website on the section of their work and i wanted to know how to do it or a youtube video that will help me to do it their website:https://www.artistsweb.com...

Why having a Link as a child of a Button

I see examples in React with Radix that does things like: ``` <Button asChild> <Link href="/path">A Link</Link> <Button>...

subgrid vs inherit

Could someone please explain the difference between defining grid-template-columns: subgrid; and grid-template-columns: inherit;? Thanks in advance.

How to create this tree

I need to create structure tree like is on the image. I looked for any library but I didn't find. So, if you know any libraries or how to create this by pure html/css/js, please help me:)
No description

Seeking Feedback on My First HTML/CSS Project!

Hi web developers, I'm excited to share that I've just completed my very first project using HTML and CSS! πŸŽ‰ As a beginner in the world of web development, I've poured my heart and soul into crafting this project, and now I'm eager to seek your valuable feedback. Would you mind taking a look at my code and sharing your thoughts? I'm open to any suggestions, critiques, or tips you may have to offer. Whether it's pointing out areas for improvement, suggesting better practices, or sharing handy tricks, your insights will be immensely helpful in my learning journey....

Oversized img on iPhones, when other devices are showing img perfectly

Im using parallax effect on my website, background image is set as a bgc-img: url() in CSS. Image is working ok on every single device but not on iPhones - the only thing i can see is pixelized, oversized left corner of that image. Does anyone know what can couse this issue? Thank You for any information

I need help with responsive.

I'm doing desktop to mobile, and I'm having trouble on mobile devices. Can someone give me an advice to improve my code. Thanks https://codepen.io/Jonah-the-lessful/pen/dyLdKjZ...
No description

Looking for direction / guidance about this particular canvas effect + resource

There is a canvas interaction right at the header of the case study from this site. I want to know if there were any materials that I could take a look at to learn how to reproduced whatever she did. https://jant.fr/case/shinjuku...
No description

My website is not responsive as it's supposed to be

Need help to make my website responsive. It looks good when it's on desktop mode, but on mobile view it just doesn't fit properly. It's a bit hard to exlpain here, if someone has 5 minutes so I can live stream it through Discord I would appreciate it. I'm a begginer so I'm sure you can help me 😦

When using Next Image, and the src is SVG, fill color doesn't work

is this behavior expected or there is a workaround?
No description

Is there a smarter way to do this?

Is there a smarter way to do this? https://codepen.io/Lko3001/pen/zYXRqjo I want the items inside of .item to wrap when there's not enough space, and I want the button to grow when it's wrapped. And also, is there a way to make them all wrap if one does? I think subgrid might help but i'm not sure how to make them wrap...

grid column/height value scenarios

Hey, what’s the trick to deciding when to use a minmax, general value, or auto for the size of your grid column/rows? Thanks in advance.

Ephemeral padding when animating grid row height

Following the approach here to animate height from "0" to "auto": https://www.youtube.com/watch?v=B_n4YONte5A. It's a neat trick avoiding JS, but I'm wondering what's going on with the white-space at the bottom in this screen recording (the orange section is the grid-row that's animating from "0fr" to "1fr"), and if there's any way to get rid of it.
No description

Expanding Card Text Sizing Problem

Hi, I need to code a card layout consisting of 3 cards. When any card is clicked, it will expand in size. However, with my current implementation, the text within the card grows and shrinks during the animation. I know I should not animate the width, but I couldn't find any other solution. How can I achieve this? Thanks in advance for your help. Here is my try: https://codepen.io/aydgn/pen/poBaJQj?editors=1100...
No description

How to get rid of little blank space

Hi, I will send the ss of it below in a second. One is css problem is that i get this little overlay or little bar i cant get rid of. heres the picture...

How to color text so it is visible against any background color?

I have a page (source) where I've got a grid with different colored lines. Is there something I can set the color of the text to so it'll always be visible? I want something like mix-blend-mode difference plus filter invert(100%) from this article. I want the text color to be the inverse of the background, and not to invert the background. I also have programmatic access to the hex version of the background color. I tried color-mixing some, to no avail....
No description

Why is my article overlapping into my nav, and how do I fix it?

Go easy on me, I haven't worked with CSS or HTML since like high school. It could completely be that this is perfectly fine behavior and I'm overthinking it considering the texts aren't mixing, it's just the border going into the navbar that worries me. Outside of knowing how to fix this issue so that, you know, my article section and my navbar section are separated from one another, are there any other glaring cases of bad code practices that I've made here? I feel like I might be overusing variables or classes. https://jsfiddle.net/4vkxybqj/3/...
No description