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

How to stop the animation at the end of the h4.

As you can see in the picure my animation keeps running till over h4. How do i stop this at the end of h4. https://codepen.io/Boeroe/pen/mdaNNwX...

How to position svg that underlines a text properly

I have to get this svg positioned rigth below the text (with a min space between the text and the svg) and it has to follow the size of the text (which changes according to the width of the screen) By now the svg is positioned like this: Html: ` <h2 class="dark-olive-text bolder">...
No description

CSS not applying

How can i make sure my CSS is applying on: .homepage .textani h4 { font-size: 3.2rem; font-weight: 700;...

Dropdown menu issue

The problem is, when I hover over the product link on a large screen > 1000px width, the dropdown works and shows the menus but when I reduce the screen width to <1000px and click the product link and dropdown is showing menus, it is also working fine, and now is the problem when I again go to the larger screen, and then hover over the product link, now it's not working, it is only working if I click on the product link. but I want to show dropdown menus using hover over, on screens with a width >1000px. how to solve it https://codepen.io/hamzacodepen951/pen/mdaNoME...

Bootstrap 5.3 Override $primary in darkmode

I want to add dark mode support to my project. The problem I am experiencing now is that my main primary color #6174dd is being applied to bg-primary in dark mode and it's not pleasant on the eyes. I tried overriding primary-bg-subtle-dark, but that does not seem to be doing anything. ```scss @import '~bootstrap/scss/functions'; ...

i want list of dates that i select but smth is not working

```jsx import React, { useEffect, useState } from "react"; import Css from '../Css/Weak.module.css' function Weak(props) {...

Getting Data from Multiple Buttons on Click

Hello, I'm trying to add an event listener to all buttons within a div, using code such as: ```...

Mouse Interactions and Frontend help

I need help with three aspects of my web portfolio's about section, I am currently just going focus on a specific part which i will provide a Codepen link that is similar to what I have (I'm currently using nextjs and styled component in my personal project): Link: https://codepen.io/jorgeo/pen/jOXebZZ 1. Eye Animation and Mouse Interaction:...
No description

Make div "behave" like body element

Considering this simple HTML: ```<html> <head> <title>My website</title>...

Code at the top of the Javascript file works, but the ones beneath don't.

Hello guys, i have a terrible problem. i had finished my Javascript code for a Sign-up page (which is attached to a main page) and everything seemed to be working fine but after a while, it stopped. After much debugging i realised that the code at the top of the page which contained a hamburger for the main page was working, while the ones beneath it which allowed you to switch between two forms in the Sign Up page, werent. I interchanged the top & bottom codes and noticed that whichever code was on top was working and the one beneath wasnt....

Need help with styling specific tags/elements

So, i did achieve this design but now i was implementing it in a better way using grids and relative units to avoid breaking and too much wrapper divs. The screenshot i shared is the design i created using flexbox and not best practices. But it is the actual design. Here is the codepen of what i am trying to do now : https://codepen.io/Zeshan-Merchant/pen/NWeQpZW...
No description

Icons are not centered in half screen

I have tried everything I know, but I'm a little rusty codepen: https://codepen.io/Zrizzy/pen/NWeQgGv <!DOCTYPE html> <html lang="en">...
No description

Conform container size to centered grid content

Hello! In this Codepen I have a grid of items that uses auto-fit to keep them centered within a container (using margin-inline: auto). I also have a navbar using that same container class. Is there a way that I can keep the width of the navbar consistent with the main content as the page resizes? I've attached a mock-up image of the desired effect - note how the edge of each container matches.
No description

can’t get my buttons to overlay the images

Hello, I have it setup so far where I click the first "Medieval" button, then two more images pop up.. they're supposed to be side by side with the buttons overlaying the images. But I can't seem to get it to work, any advice? First 3 buttons look good, but the second pair is where I’m struggling.. here's the github repo for it : https://github.com/spencerrcr/Interactive-Story

Header has a space, how to remove it.

Hi guys, my header has a space its not filling in at the top. I dont have any margin-top or anything. How can i resolve this easily and make the header responsive. If i give the header a flex the whole nav is going wrong. https://codepen.io/Boeroe/pen/QWzeEez...

Button Text Issue during animation

When I hover over to the button, the animation is good but the button text is not visible, how to solve? https://codepen.io/hamzacodepen951/pen/MWZNwdV...

Flexbox and borders

Hello there I have a block of text and and an empty div with background color and want to layout them horizontally using flexbox. All works great until I add border to the empty div. For some reason the borders are not accounted for the width and instead added on top of the resulted width of the div. As a result the div is wider than the text block. the box-sizing property for everything is set to border-box if that's relevant. Is this the expected outcome?...
No description