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

Responsive design hick-ups (flexbox gap, and img width)

Hi! My problem: trying to make the the gap property of my flexboxes responsive. It needs to be readjusted in both header and footer, it works fine when im doing my first media query(for tablets) but then when i want to do it again for laptop and pc screens it overrides the tablet's. Same problem with img widths. https://codepen.io/Ranzo-web/pen/oNOrJRQ...

Code this weird bendy thing with text inside?

I keep seeing designs like this but I don't know how to code it in CSS. can someone give me some ideas? I honestly don't know how it will look on mobile
No description

Smartly overlapped section with the one above

Hi! I have a front-end challenge for a position im applying, im almost finish but there's one section I just can get right because to make it dynamic with the content that can be variable it's very tricky. Can I get some help on how to create this? I need to deliver today...
No description

Need help from someone who knows about chrome.management api...

i want to know how to put this chrome.management.generateAppForLink("http://stackoverflow.com/", "Stack Overflow", function(info) { chrome.management.setLaunchType(info.id, "OPEN_AS_WINDOW", function() { chrome.management.launchApp(info.id); }) }); in my extension.......

Kennt sich einer mit tailwind aus?

Ich führe die Instalation durch, wie beschrieben auf der seite es funktioniert aber nicht. Habe noch ein Bild, falls es weiterhilft, vielleicht ist das ja nen gängiges Problem
No description

keep getting "Uncaught TypeError: Cannot read properties of null (reading 'setAttribute)" error

hi, i am trying to implement a dark/light mode toggle into my code and keep getting this error -- i feel like the dev tools is trying to tell me its running JS before it loads or finds the elements targeted but everything looks right on my end. probably a silly mistake but wanted to get some more eyes on this:

Read more content to popup

i have this description what i want is if the content is going beyond line 3 it should have this more... and when we click it should open the whole content into a popup what i did is, as i am using tailwind. i restraint the content to 3 line with line-clamp-3 but i can't add more after it. so i added a span with More.. and added onClick to open a popup but now the problem is even when the content is not of 3lines it still shows more the solution i found on internet says i need to calculate the line-height to determine if the content is of 3 lines but still the problem is if the content is of 3lines but it is not touching the last point suppose there's only 3 words on last line ...
No description

JS Canvas shape duplication issues

He guys, I just bumped into this issue while creating a drawing app. I started with stroke rectangle shapes, it works fine in some places inside the canvas but when it reached around 50% to the right of the canvas it keeps printing. I really appreciate if someone can help point what is wrong with this code thank you! video: https://www.loom.com/share/958daa9f8db643e59f1b987061886128 code: https://codepen.io/jtzuya/pen/eYoweNa?editors=1111...

navbar and container

Why doesn't the list come next to the logo??
No description

Code review for my header / nav please

hi, i am getting into web dev and responsive design and mobile menus have been my bane, making an effort to get better and I was hoping someone could look over my project structure and see if this is a good template to build off of or if its too verbose, as well as look at my styling usage and critique as they see fit! repo: https://github.com/griffnsh/web-starter...

Scale button on hover causes text in it to blur during transition

Hello everyone, i am trying to create an hover effect for a button where the button increases it's size. I noticed that this problem has some stack overflow solutions but none seemed to work on my end. I was wondering if anyone has had a similar problem and how they solved it. One work around i see is maintain the size of the text and increase only the size of the button. Here is the code i am using: ```html...
No description

Flex-item not shrinking and causing overflow

Hello, I'm working on a simple UI for utility tool and I need bit a help with css, basically I got a div that lists all files inside a scripts folder, however the span item (so the file name) just doesn't shrink causing the whole container to overflow Like this https://mentally-insane.pixeluted.com/BOXe6/PELotUxU44.png ...

"Overlay" section, between section, with dynamic content

I'm trying to recreate this effect (the overlay section that is in between two sections, with the form in it), without calculating the height with JS and positioning it with absolute. Initially, I thought that I could use something like margin-block-start: -50% to move it up 50 % of its height, and therefore make the content below "follow along", but it moves up waaay more than that. You guys have any other approaches I should look into? I'm running out of ideas.
No description

Replace

Hello. Can someone tell me where to find a detailed explanation of writing paternas to the replace() method? I need the most detailed explanation, because I need to write a large paterna...

background

Hi guys, I'm facing some difficulties with this layout, I'd like to be able to replicate this background, something like that, but the radius doesn't look the same at all
No description

Media queries not working on live site

Hey. The media queries I just made work on the website preview when I open the index.html file but when I added it to github and deployed it through github pages, it changed nothing concerning the media queries. Help

Absolutely positioned element in the DOM but it's not visible at all with a z-index of 70

Somehow the console logs show the right flag changing from true to false, affecting its insertion in the DOM, yet it's not visible at all, only when I hover over the element in the DOM, as seen in the gif. What can I do about this? Its direct parent is relatively positioned...
No description

Blurred circle inside div

Hi! I have created this effect in Figma of a blurred circle contained in a div. Below is how far I have got but I am running in to a problem. The circle is popping out of the div and I cannot seem to see how I would cut it to fit the div ```html <section class="relative bg-object rounded-md mx-1 py-1 -z-20"> <div class="circle" />...
No description