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

Question on CSS Cascade algorithm

I was learning about css cascade algorithm and when trying it out in browser i saw a weird behaviour. for any css property - an user agent stylesheet is specified as !important cannot be overriden by author style sheet. which is true and correct. take this example : ...
No description

Code doesn't run on vscode

https://codepen.io/Ned-Michael/pen/eYbKONr Hello, the code works perfectly on Codepen, anytime I try to run it on vs studio my CSS file doesn't show up on the web page, meanwhile, I've linked successfully on my HTML file....

Tailwind CSS and Bootstrap

Please guys. Is there anyone that can help with a material on Tailwind CSS and Bootstrap?

Window.onclick

i have this weird issue where window.onclick is not triggering my code looks something like this ``` window.onload = () => { window.onclick = function() {...

Content is too tall compared to its parent and overflows

Hi everyone! I have no idea how to solve this. If I make the viewport bigger, <main> tag which is the main container here becomes bigger too, and overflow stops as after a certain point <main> grows bigger then it's content (like it should) and content starts to grow accordingly (second picture is what happens when height is bigger). It only happens after the screen becomes wider then 800px, which is my breakpoint for media query. ...
No description

flow chart

any good solutions for generating this flow chart like components?
No description

overflow of footer during printing

I already created post on backend please look into it. Attaching link of that post below. https://discord.com/channels/436251713830125568/1156284822386397297...

Blogger theme

hey i am creating a template for blogger . can someone pls give resources for tags and all .pls

weird white gap on the bottom while scrolling down mobile

Hi! So I was wrapping up this screen when I started testing it on mobile. As you can see, when sliding down, this weird white gap appears as long as I hold on to the slide. When letting it go, it goes back to normal. This is how I have implemented the background: ```css body { background: linear-gradient(to bottom right, #12384c 0%, #161c24 60%);...
No description

Challenge #1 Alternate Solution

I already submitted a more normal grid solution for Challenge #1 and the deadline passed, but I wanted to also do one using a more esoteric solution. This one uses display:table. This is an alternate way to get a table-like structure without using an actual table in HTML. The benefit of this approach is that it can be applied conditionally based on nth-child. The spacer underneath the photo is accomplished via a div that has no content and no size set. When that spacer is given display:table-cell, its parent is given display:table-row, and the card is give display:table, the spacer div takes the width of the table cell above it which holds the image. Leaving these display properties as default on the other cards makes the spacer have 0 width and 0 height, because it has no content and no explicit size. Note: I am not recommending using this approach on a regular basis....

VS Code Issue with Absolute Path

What I am trying to achieve is to create absolute path aliases in webpack to simplify importing modules. The code work as expected in Stackblitz web container https://stackblitz.com/edit/stackblitz-webcontainer-api-starter-u9g2us?file=package.json,src%2FApp.jsx,webpack%2Fwebpack.common.js ...
No description

How to get rid of this Favicon error, it's driving me insane, I cleared cache and everything.

This is just mind boggling of how stupid it is, I don't have anything related to my 3 line code to favicon and its giving me error all the time, so pissed off....
No description

Animate on scroll

Hello, could you guys help please? I’m having trouble animating my h1’s on scroll, everything seems to work fine when I animate it with pure css, unless I use phone browsers. Then I tried AOS GitHub library. And there seems to be problem with putting it on h1...

Layout struggle

Hi, i'm struggling to get this layout. My Grid is making two rows, even though i only set 1fr on row. ```scss display: grid; grid-template-columns: repeat(3, auto);...
No description

recreate this layout challenge

Could someone tell me where I went wrong when trying to recreate this layout ? Here is my solution: https://codepen.io/mikewill245/pen/JjwvEgM...
No description

Progress on my Challenge #1

I am going into the challenge and blind with a Google search bar in hand. I did not read any solutions and I wish to come up with my own. Here is my codepen link. https://codepen.io/gregwoodsfrontier/pen/abPGWXz...

Quirky numbers in javascript

When I add 0.01 it instead adds something odd.. How can I solve this?...
No description

Array issue (Unwanted changes to the array)

HI! So I am setting the const change [] to be equal to cid [] After that I alter the const change so that the values return to 0 ...
No description

error message during watch in sass file

when my main.scss with import is being watched and I change + save the file that is being imported, I get this error message regularly (about 25 - 50% of the time): `{ "status": 1, "file": "C:/Users/Wessel/Desktop/test-folder/SCSS/main.scss",...
No description

Animation Problem

Hello i have a problem i am trying to create animation like this one here for the case studies can someone help me iam using framer motion Next js typescript and styled components https://www.appart.agency/#workoffset . I will be really grateful ! here is the code of a single case studie for me for now ```tsx export const CaseStudy = withVisualEditor<CaseStudyProps & MotionProps>( ({ partnerImg, title, categories, ctaLabel, ctaLink, studyImg, ...props }) => { const controls = useAnimation(); const [scrolling, setScrolling] = useState(false);...
No description