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

Problem in removing event listener

I am making a flow-chart maker and made a new class which will create a div element when the user selects (drags and drops mouse). Here's the code ```js import { el, css } from './utilities.js'; ...
No description

The other div not showing up

So i have created 2 divs in a class but one of them doesnt show up whatever i do

Centering a card on the page, best practice

I am trying to center a card (vertically and horizontally), it's a simple html layout: <body> <main> <section class="card">...

@media and EM

My media queries seems to be acting up when using it for mobile. I will attach the video if possible.

Consistent distances between two elements in a grid

*Sorry for the new thread, I couldn't add new images to the old OP. ------------ So I'm trying to make one element in a grid start a consistent distance from another. For example in the images with the snowboarder I'd like the blue background to cut through the image about halfway up (image 1)...
No description

Is there a way to have bg-clip-text not cut off letters (eg: 'g') prematurely?

The g gets cut off prematurely. Adding a line-height of >= 1.2em fixes it, but makes the gaps between "Software" and "Engineer" incredibly huge and ugly on smaller devices. I'd love for it to be consistent. ```html <div className="p-10 flex flex-col gap-4"> <div className="text-5xl font-bold">...
No description

Help on SASS regarding responsive nav bar

Hello all, I just started learning from zero knowledge two weeks ago and currently tackling sass. I have a mockup and I am working towards but can't seem to get the nav items to space evenly within their "column" like the mock up as well as the longer border-bottom when the link is active (only to the width of the text) I've fiddled with flex box, alignment and justify content, nothing seems to make it budge.Been stuck on this for the past 6 hours and seriously questioning if I am just really stupid......
No description

Get Stuck with Arrow Hover Button

If the users click the entertainment features in the navigation bar it will take them to entertainment places i already did a flexbox cards but i don't know how to arrow hover button to hover all 6 flexbox cards in one row . I have attached the wireframe as well, you may refer to it.
No description

how to use and process token that i get after authentication is complete?

Description: First time creating MERN authentication I've created basic user login page with username and password if both matches it returns token which has setout time Questions and issue:...

API

Hi everybody I need a free api for crypto and nft( specially for nft) Could you please help me find thatπŸ₯²...

How to make this grid layout without using display grid 2 times?

Is it possible to make this layout (1 full width row and 2 columns below) without using display grid 2 times like I did?
No description

Merged cells in table

I am creating this table layout with merged cells. The html I have written is a bit awkward. Please let me know if this is good or is there a better solution. ```html <table border="1"> <thead> <tr>...
No description

CSS Grid Makes White Space Because Of The Height Of Some Columns

The question is how do I just slot in the 2 rows beneath the picture into that white space, so that I get it like in the second picture
No description

After setting proxy in vite.config.js '/api/3' making call on 5173 port instead of 5000

Description: please note this is the first time I'm using proxy so i may not be aware of certain terminology or i might have made mistake. I've set up the proxy in vite.config.js code screenshot shown in first image port of frontend vite + react is 5173 port of backend node + express is 5000 (using cors)...
No description

How to make two scroll work at same time Only css

Help me... im kinda new but i want to know it...

How to keep all styles of an element when a drag and drop event occurs

Can anyone please help me with this part? When I drag and drop an element I want it to keep its styles, but now it has disappeared or is incomplete.

Format string from an object

I'm attempting to format text from an object in an array. I am mapping the objects to jsx. I am not sure how I would go about formatting a single property from a particular object. I've been googling for a bit, but maybe I'm not asking the right question. Any Ideas? ```js { id: '0',...

why css grids, just why??

I'm just asking as the grid overflows and it's not easy to make it dynamic

Seeking Guidance on Button Design: Photo and CodePen Link Provided

I have a question regarding the button I've shared a photo of. Could you please let me know how it looks? Additionally, I'm sharing the codepen link to show how I've approached creating this button. Can you guide me if there's an easier way to achieve the design shown in the photo? https://codepen.io/Amit-Soni-the-vuer/pen/VwNeWbj...
No description