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

Background image not showing without text on it

background image is not showing for column col-md-8 when i place text on it it displays only then . If i set height and width it is visible but i want to fit the image properly so that it takes 100 percent of height and width of div .check the images

Custom headings (h1, h2, etc ...)

Hello! When building a component (I'm using React in Next), I want to build a component with plain text, but I wanna be able to change the heading order based on which page it is on. Example text: "I'm a subtitle"...

Button Touchscreen Interaction

Hi, when I'm tapping on a button on touchscreen devices I see a square background for a short while. How do I remove that? I've tried adding
outline:none
outline:none
to
:active :focus
:active :focus
states but that doesnt work. I'm sorry if I didnt explain the issue that well.

side task labels

I need to make this kind of label at the side of my text outside of main area of the page, it needs to be aligned with that text. at first i have done that with a grid (at left bar was that label and in the middle area of the grid i was using flex box for a responsive design) but now I have a problem:...

Stacked Testimonials

https://codepen.io/ahad4387/pen/gOQvoLZ Trying to achieve stacked testimonials animation which has cards below it scaled down similar to the image attached. From this reference codepen( https://codepen.io/maleekcodes/pen/MNWVQK ), I've managed to get the functionality right but I'm not understanding how to get the remaining cards stack below similar to image rather than above. ...

css container property blocks position absolute element from positioning correctly

I recently tried using the CSS container property for the first time and encountered a situation where I may need to remove it and continue without it. Please refer to the attached image for clarification. I have a container to which I applied the container property to utilize @container queries instead of @media queries. Within this container, there is a child element that I wanted to align to the right of the viewport. I applied position: absolute; right: 0; to the child element, but instead of moving to the far right of the viewport, it stopped at the borders of the container element as if the container had position: relative; applied to it. I made sure that none of the parent elements, up to the container element, have position: relative; set, and I confirmed that they are all unset....

login issue

I am working on a project with an idea that might seem suspicious to some. In short, I have encountered a problem. The project is based on the premise that when the user enters their email and password, this data is sent to the admin dashboard. The admin then verifies them and either approves or disapproves. If approved, the user is redirected to a page also specified by the admin. I have searched for various solutions, but some suggest that it is possible if the user presses "login" twice or if I perform control on the user's browser console. However, these solutions are not helpful. Is there any other solution? I would appreciate your assistance as soon as possible.🥺...

responsive container depend on list items

How i can make my container responsive Depend on number of items 1:1 col 1 row 2 :1 col 1 row 3 :2-2...

Social Media Link in Bio Causes Glitches on Website, but Works Perfectly on Chrome and Safari

I’m facing a strange issue with my website when I paste a social media link in the bio section. The website starts glitching, but interestingly, when I open the website in chrome or safari, everything appears to work fine. I’m unable to pinpoint the root cause of this problem. Can someone please help me understand why this discrepancy exist and provide any suggestions for resolving it?

Grid Questions

1. Is there any type of design philosophy behind the 12 column layout for Grid? Is this still something that is best practice or recommended for certain situations? 2. What are the usecases for the various measurements with grid. For example for Grid-template-columns when should I be using %, px, Rem/EM?...

Element for iPad mobile responsive is different from the rest of the orientations.

So I have launched my digital agency's website and for some reason when looking at the iPad version the letters appear like they're in a box when it's not supposed to. I need help figuring out this problem HTML ```...

svg path is not at the specified location even thought the starting /end point is correct

im using getBoundingClientRect() to get the div position and with that position im generating the spline . if you look at the picture u can see the coords ```js ...

<fieldset> & <legend> effect without incorrect semantics.

Trying to help somebody else on another server who wants to achieve the pictured effect. The effect of the "BUGGED" text's padding-inline covering the border but still maintaining transparency to the background behind (which obviously isn't a solid colour) is like <fieldset> & <legend>, but using those elements here would be wrongly semantically and I'm struggling to think how to do it otherwise as there aren't relevant default styles on those elements to emulate...

Typescript with useRef - how specify generic type?

const progressRef: React.MutableRefObject<HTMLDivElement | undefined> = useRef()
const hoursRef: React.MutableRefObject<any> = useRef()
const progressRef: React.MutableRefObject<HTMLDivElement | undefined> = useRef()
const hoursRef: React.MutableRefObject<any> = useRef()
...

Code review if someone has time?

Still learning a lot in React but enjoying it so far... curious if anyone had time to look through this repo and let me know what you think? Go easy on me! I'm still pretty green... 🥺 It works. Succesfully minted. Just more looking for code review. https://github.com/TheHumanistX/erc20MintingDapp...

how to read this object?

```async function fetchData() { const response = await fetch('http://localhost:1337/api/products/1?populate=*'); const data = await response.json(); console.log(data); } ...

Today's CSS Battle

99.9% match 😅 Does anyone has some suggestions?
<body style="background:linear-gradient(-45deg, #0000 13.96em,#4F77FF 0 14.55em,#0000 0 15.2em,#4F77FF 0 15.8em,#0000 0 16.4em,#4F77FF 0 17.02em,#0000 0),radial-gradient(circle at 50%,#FFF 5em,#0000 0)#4F77FF">
<body style="background:linear-gradient(-45deg, #0000 13.96em,#4F77FF 0 14.55em,#0000 0 15.2em,#4F77FF 0 15.8em,#0000 0 16.4em,#4F77FF 0 17.02em,#0000 0),radial-gradient(circle at 50%,#FFF 5em,#0000 0)#4F77FF">
...

How to remove the blank space in the component

So I have a toaster component that aligns toasts at the top. When the first toast uses more width than the second one, a blank space is appearing. How do I remove that extra blank space? Here is the toaster html ``` <div class="toaster position-fixed top-0 end-0 px-3 py-2"...

Responsive positioning in css

Hello, hope you all are doing good now can someone explain to me how do I position my logos (Netflix, Shopify, Spotify, Walmart). exactly like in the design, please include your HTML too. code: https://jsfiddle.net/speedy2k/n28p56ua/6/...

Help me achieve this Effect

Source code and how to video is included. I create sites using WordPress and Bricks builder. Can you help me create this effect on Bricks builder? thanks https://codepen.io/Hyperplexed/pen/MWQeYLW...