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

Challenge #1 Help! flex or Grid

I wanted to do it via flex, but how do I push the text without adding a margin and have it automatically push there? Do I have to modify the shape of the card? Using grid list is easy but I need to do it using flex and flex shark https://codepen.io/tazissam-the-looper/pen/abPGzOE...
No description

How do I put the image behind the hero section?

I'm trying to solve a frontend mentor challenge, but I'm having issues putting the squiggly lines image behind the text at the hero section and i tried using relative and absolute positiong but the image won't move to the top-left side and remains in the middle. How do i solve this? Code: https://github.com/kenekc18/Insure-landing_Page Frontend Mentor Challenge: https://www.frontendmentor.io/challenges/insure-landing-page-uTU68JV8/hub Live website:https://insure-landing-page-psi-pink.vercel.app/...

Recreating Apple's security/privacy padlock animation on the logo through just code

So I was redesigning a startup's website with better UI and animations to show my skills and then to pitch for an internship opportunity using that as proof of work. Now they have this section on security/privacy where I thought it would be cool to make an Apple privacy-type padlock animation with their logo. So my question is, can be done using CSS or any framework with just code and not animation software?(EDIT: I will be using an image of the logo and code the handle of the lock, as otherwise...
No description

Is this possible?

Hi, Iยดm working in a layout and I have a problem related to composition. What ratio would I have to apply to my second element (column-8) and how would it be calculated so that it had the same height as the previous one (column-4)? Show case: https://codepen.io/segundofdez/pen/ExGEBoZ The real website:...

Auto Closing Tag not showing

So i'm trying to add the feature on my code editor that helps devs to write easier and faster so i want to add the feature auto closing tag but it's not showing or sometimes it gets shown like in the photo So i want when the dev write a nametag for ex: <h1 but after he type the ">" i want the the closing tag to get closed by itself Here's the code : https://codepen.io/ssamimustafa/pen/XWoExmO...
No description

Loop through Two Arrays (JS)

I have two arrays which I'm trying to loop through to determine if they have matching values. Here is a portion of the code: ``` currentProducts.forEach(item1 => {...
No description

How use client components with next18n?

Now I change languages like this Language.tsx ```tsx 'use client'
...
No description

How does the input checkbox work if it's hidden?

Here you can see from https://youtu.be/1TZjgQ0Osic 6:30, he creates that hamburger button, he hides the input, and then he uses css selectors to "use" that hidden input element in order to toggle the sidebar, how does that work?
No description

Child to be 100% of the align-self parent, but not more!

Hey everyone. So this is my layout, like on the picture. Both lef (blue) and right (red) side are made to be: align-self:stretch. Since the body is min-height: calc(100vh - header height), both left and right side will stretch to the end of the container. Since my right (red) side doesn't have a predefined height, can my yellow content inside the red element be 100% of it's parent (red element)....
No description

Font-Size Effects: Unraveling the Dual Impact on Text Height and Width

as of my knowledge the font-size effect only the the height of the text in an element(correct me if am wrong). which mean if font-size is 10px, height of text inside an element become 10px if changing the font-size to 20px the height of the text become 20px. but the question I want to ask here if above is correct then why the width of the text also changes as the font-size of the element change codesandbox: https://xlvn5c.csb.app/...

Virtual Grid

Hello, I don't have a specific css question. It is rather a "how would you achieve this" question. I have a really large table (realised with grid) and due to the filter options, the site gets really slow because it has to rerender a lot of nodes. So I decided to build a script which computes which cells are currently visible and which ones are not. ...

Having Issues With The Height Property

I wanted to know if it is appropriate declaring your height on the html element for a fresh html project, so you can work on that. I ran into an issue trying to learn how to build header's & footer's, so I wanted my footer to be at the bottom of the page while my header stays at the top & my main element have some height that fills the whole screen without it having to scroll to reach the bottom. In my codepen, if you comment out the height for the main, the footer & header collapse and become one block but I wanted them to stick to the top & bottom so I declared the height for the main element where content would sit. Here is the link to the Codepen...

hero section design

Hey, what would be the best way to go about this sort of design for a hero section where the image intentionally overflows the container as shown in the image? Would it be setting a max height on the container or perhaps a property on the image? Iโ€™d much appreciate any insight, many thanks! (Sorry for the poor quality image haha, I had to draw it on phone)
No description

Why my images get smaller when i zoom ad viceversa?

```css .row { display:flex; gap:1em; max-width: 100%;...

CSS grid, setting maximum span

Is there a way to set a max value for CSS grid-column: span such that it takes up n-columns maximum or spans across all available columns if there are fewer than that? If I use span in a grid with auto-fill it'll forces additional columns even when there isn't space for any and makes them look weird....

Navigating a dashboard with js only

I want to know how to navigate through a dashboard contents like(profile, settings, analytics...) Using only js... because I am a beginner and I still don't know react... Could I change the content of the same container each time or this will be a bad practice...

Spam me with JavaScript projects for a beginner.

Hi I am a beginner in javascript (I have knowleage with html/css) and want to start creating some projects, can you guys give me some ideas about beginner friendly projects to start with? I want them to go from really easy and then step by step adding more difficulty.. I want to have lots of projects I can be creating this week. I want both real world projects and some fun ones to create just for the purpose of learning....

Having to set a height declaration using -webkit-line-clamp on older iOS devices?

On a page I'm building I am using the line clamp that Kevin showed in a YouTube short I came across recently. '.line-limit { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;}' It is working as expected on all my Win 11 desktop browsers and in responsive mode but I checked on my iPhone 6S+ (iOS 15.7.9) and the paragraphs are shown full length and there are lines of text that are overlapping. I was able to look at the page on an iPhone 15 in the store this morning and it was working as expected. ...
Example of .line-limit CSS on older iOS device without Height declaration

Getting back into the document flow after using Positioning Absolute.

I'm trying to add a form after my css image for a school assignment and I can't figure out how to make it show under my img-container. https://codepen.io/tehlefty/pen/YzdaPPM?editors=1100 Any thoughts?

Buttons "jump" after hover animation

So the title itself is pretty explanatory. I'm trying to give my buttons a hover effect that makes them bigger when hovering but somehow when you stop hovering and it goes back to its normal size, it does a little jump. I've made a codepen with the code of the buttons so you can easily check it, but I'm leaving a video too. PS: It happens with logos too. https://codepen.io/Tekyo/pen/vYvdrNg...