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

Anyone knows how to achieve this design?

This table has empty <tbody>, but its height is fixed. Normally table has dynamic height, but in this image it doesn't. Tried using flex, but its just weird to use it for table. Codepen:...
No description

JS logic question

```js var x = 10; var y = 20; function abc(x, y) {...

Problem with hero image - positioning behind header

Hi, ya'll o/ So, I have this image and it's suppose to be kinda of out of screen and behind the landing page header. I have tried put position/z-index on the image and header put couldn't make it. When I try to put a z-index on the header, the maximum I got is the .header__cta above it, but the white header still behind u.u Can someone help me ? ๐Ÿ™‚ codepen -> https://codepen.io/rwxganta/pen/oNJmzZK...
No description

Flexbox 101: Setting height to box when using flex-direction

Trying to get the hang of how flexbox works on a more fundamental level. How come height is not being able to be manipulated when using columns (in div boxes without content)? https://codepen.io/spaghettibernie/pen/rNoPqjX Let's say you wanted to space up the div boxes to take more space, what would be an effective way to do that? "flex:1;" (flex-grow:1) does not seem to do anything here. Entering "test" into one of the div-boxes does extend it, but it limits itself to the content (block-type behavior). ...

How to set full width for items

Hello community, I am trying to set the gray background to be the size of the screen, but the width property doesn't seem to do that. Any links or ideas are welcome....
No description

How can I turn a React application into a PWA?

I am currently using a React application with Vite and I want to turn it into a PWA by implementing a customized popup for users to download the application. I have attempted a few solutions, but the service worker is not registering and I am only able to access the PWA on desktop and not mobile devices. I am using a vite-plugin-pwa and need assistance in resolving this issue. Can anyone help me sort this out?

FLEX WRAP IN MEDIA QUERY NOT WORKING

why isn't the header btn .a (github button) & toggle btn wrapping onto the next line???
No description

React Problem with Tailwind?

I just started using react 2 days ago. Im currently facing a problem with react to tailwind. The problem is when I'm using components as I design I don't see the results. But If I only design in the App.jsx I can see the output. Tailwind confi, App.jsx, components and output are attached. PS. This is a tutorial from a YouTube that Im just following....
No description

HOW TO MAKE HEADER CONTENT LINE UP WITH FLEXBOX COLUMNS

how do i make it so that the pic on the left and github button line up with the ending of the flex box columns?
No description

Responsive navbar question - Kevin's video

Hi all, in video below Kevin explains how to create a custom mobile menu which will open and close when user clicks the nav-bar button: https://www.youtube.com/watch?v=HbBMp6yUXO0&t=2081s I have copied the code and all is working great except 1 thing - on page load if I resize the browser, the mobile menu will "flash up" as it's transitioning itself on mobile breakpoint, due to this CSS within the .primary-navigation : ...

Getting Chart.js to work in a Vue js project

I'm trying to use Chart.js in Vue project but nothing seems to happen when I follow the documentation exactly as displayed on their website. https://www.chartjs.org/docs/latest/ https://vue-chartjs.org/ ...

Best animation Library with Vanilla JS

Hey guys so I'm building my site with vanilla JS and was introduced to different animation libraries like motion one and GSAP was wondering which is a better choice for basic animations on scroll and can animations differ depending on screen size? Like on mobile can I have different animations than desktop?

Is there a way to force iOS to display a vertical scrollbar on a desired element?

I've been tearing my hair out trying to figure out why my scrollbars are disappearing, and it turns out it's an iOS thing (possible Mac too?). The browser is automatically hiding the scrollbars, and they're only showing when I hover the element, which reeeeeeally isn't acceptable as the user needs it conveyed to them that the element is scrollable by sheer virtue of the affordance a scrollbar gives. This also happens on a desktop browser when viewing the page in devtools as an iOS device....

Mixing overflow-y and overflow-x

Hey team, I have a certain problem with forms and overflows Imagine having the following structure...
No description

White place

https://peppy-kitsune-0f72e6.netlify.app/ My CSS is having a problem with the white place, it is also on the mobile screen. Although I follow Mobile-first, I don't know why it looks like that, Could anyone know the reason why and the solution for that, please support me, I really appreciate it ๐Ÿ™...
No description

Media Query, trying to turn text into icon.

Hey guys I am going thorugh a web development bootcamp and I am not getting any help from my mentor. I am trying to turn the "Search" text from the search bar into a magnifying glass when the width of the screen is 767 or less. This is the last hurdle I have to get over and the website is done any ideas, links anything would be very appreciated....
No description

CLAMP VS MEDIA QUERIES - mobile friendly

i don't need to use media queries if i use font size clamp right? im trying to make the website responsive on mobile...
No description

How to make a button inside an input

I'm trying to make this input with a search button inside, but I'm not succeeding. How do I do this style?
No description

Rotating Tab links in mobile

I'm trying to achieve this tabs layout. I've attached the desktop version and the mobile version I'm trying to get. Desktop is fine but facing problem while implementing the mobile version. I've rotated the product-tab-menu-link in mobile but it's not filling the whole space available. ...
No description