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

Which code is better considering accessibility and semantics

I'm trying to come up with the best way to present/code forum categories with forums list in terms of semantics and accessibility. https://codepen.io/MannixMD/pen/JjBPMGb If you have another idea on how the code should look like I'm open to suggestions 🙂...

I want to darken my banner background images

The problem is when I set the "filter: brightness(50%)" value, my banner title also got 50% brightness which I don't want to. I tried to change the title's brightness back to 100%, but it doesn't really work. I will attach 2 pictures of the code, and there is the link for the site: https://lovely-swan-09f5fa.netlify.app/...

VW not working properly

vw is functioning like an absolute unit. I am trying to create a responsive navbar nd using vw as margin unit but it is functioning like an absolute unit nd I had to put media queries to fix the prob. https://codepen.io/RS_2009/pen/jOpqEqV?editors=1000...

Search Bar seems to have an issue with the input text

The input element seems to create too big of an outline that either exceeds the container it's in or it matches the width and height and shows a outline border that doesn't go away. Is there any way to avoid the outline and also any suggestions on what I can do to make it look better. Seems off to me https://codepen.io/MD-2016/pen/JjBGgBz...

Better method to make flex children full height and text centered?

So, this is my code https://play.tailwindcss.com/VhJeG1iMb3. It's tailwind, the classes represent the style that is being applied (if you hover over the class you can see it). What I want to do is make the div full height and with the text centered, I achieved it but I had to make it self-stretched and a flexbox and then align the items in center. I was wondering if there was a better method to do it....

The screen pushes to the right when the chat feature is opened on an iPhone only

We are rolling out a new chat feature for our sites. I work for an eCommerce company and I am tasked to maintain over 50 websites. We have started building the chat feature on our test site, https://testmage.cluster.helpmefence.com/store/. I have the task of designing it. The test site is the only place where the feature is activated. Only when engaged on an iPhone, when the bubble is clicked and the chat opens, it works, but when you click in the message box, the whole screen gets pushed to the right and stays that way until the browser refreshes. It pushes the messages, message box, and logo at the top to the right and renders it unusable. I can only debug this with Browser Stack because the same issue isn't present on the mobile simulator in chrome and any other browser. When you go to the site, it's the bubble that says "Live Sales Chat" on the bottom right-hand side of the screen....

The best way to add MP4, GIF, or animated videos to an HTML page in an optimized way

actually, there's a gif file on our landing page and it's taking too long to load the page the page performance was also too slow and now I want to replace that gif file with a new gif or MP4 file so which can be the best way to implement it I'll share both the gif file previous and the new gif file and I have attached the code of the gif file it was done by PREVIOUS DEVELOPER so could you please help me out? I have tried some methods but no change in the performance....

update swiper on content change

Hey guys, I'm using swiper js in React project and want to figure out, are there any ways to reinit or update swiper on content change(on state change for example). The problem is what I have one swiper for several tabs and clicking by tabs I want to update content inside the swiper, but then I do that, my pagination disappears. Please help:)...

how to make a bottom-to-top scrollbar?

hi, i'm trying to practice creating a messaging app. here, the app has a top-to-bottom scrollbar. i'm trying to have it as a bottom-to-top scrollbar like conventional messengers out there (discord, whatsapp, ...etc). how is that possible? resourcing to an external link so i can have a further read on it is also appreciated, thanks!...

Not able to maintain aspect ratio of image in small screens

My images are shrinking in mobile view. I want to maintain aspect ratio of image in small screens just like the given picture. Can anybody help me with this. Here is the code pen - https://codepen.io/adarsh88/pen/xxJZZrM

Not able to span for the entire height of the viewport

I have got three divs that have specified heights. I spanned the entire width using width:100%, but the height of 100vh is not working. I want to span for the entire height of the viewport. Here is the codepen for reference - https://codepen.io/adarsh88/pen/xxJZGvq

Chakra UI import error

Help! I just installed Chakra UI in my Next Project and its throwing an error:

Getting the svg's into the search bar

I got the icons I needed from font awesome and the container for the search is in flex row. I tried css ::before and ::after but I dont have the icons installed so I cant use a background url. Here is a pen to see what's going on https://codepen.io/MD-2016/pen/KKBwaXy...

Scope vs Lexical Scope

What is the difference between Scope and Lexical Scope in Javascript?

There are so many issues on this project. can someone guide me

1. not being responsive 2. image being oversized, reduced with but it doesnt fit the border on that div. tried object-fit to contain, no changes in general not a single thing is working apart from header section ...

unable to divide the section into equal 4parts using grid

parent container code .weather-forecast-today{ border: 2px solid blue; display: grid;...

Frontend Roadmap for 2023

Frontend Development interview checklist and Roadmap for 2023

How to fix these lines(pseudo elements with before)

i want em to be just like as the 3rd pic

Add a circle to a CircleProgress component

Hi there, I'm looking to create something similar to this component from Apple's website (picture below) but there's one part that I'm not sure how it can be achieved: the tip of the progress indicator has a circle/ball inside it with a 3px white border, how can that be replicated with React/CSS? https://codesandbox.io/s/base-react-circular-progressbar-examples-forked-um3bev?file=/index.js...

Footer in bottom right hand corner

Having trouble getting my footer down in the bottom right hand corner. I got it in a flex display and trying to use ::before to get the icon svg to be before the div inside the anchor of the footer tag. Any thoughts on what I'm doing wrong here? https://codepen.io/MD-2016/pen/KKBwaXy...