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

CSS prefix

Hello everyone, I need some opinions or suggestions. How do you determine when to use CSS prefixes? Which approach is more commonly used by developers: manually adding vendor prefixes or using a third-party tool like Autoprefixer...

Modern version of stylelint-config-rational-order ?

I'd like to lean on stylelint to keep my properties in a rational order, but the existing stylelint-config-rational-order is outdated, and does not include any logical properties whatsoever (like margin-inline-start). Is there an up-to-date version of such a config for stylelint that includes all modern (as of 2024) CSS properties?

How can I show the select options at the bottom of the screen on a mobile device?

I have a number input and a select input next to it like the image attached When I focus on the input[type=number][inputmode=decimal] , it works correctly where my number keyboard pops up however, when I move to the select options, the keyboard goes away and it is only focused upon. I want to allow the user to keep their hands at the bottom of screen and select an options like option 1 and 5 here in this website...
No description

Can yall share your personal website's? (Portfolios?)

Hi Guys, Just wanted to get some inspiration for my own website. (Hopefully if there's sauce code in Github, please share that too)...

Grid container height doesn't fit all of its children

I'm trying to create a bracket in html and I ran into an issue where my original container doesn't seem to fit all of its children, it's just barely too small. As you can see on the screenshot the container's height ends and its padding (that I added there to make it not cut off the last item) starts. Any idea what makes the container too small? I noticed that if I remove my <h3>s at the top of every column then the container's height is correct and padding isn't needed, not sure if it's related. Here's the link to a tailwind playground, sorry if it's messy: https://play.tailwindcss.com/REG3wRZEwt...
No description

height: 100% not working on Android WebView

Company I'm working at has plans to implement web features in our native applications. Everything works fine out of the box for iOS, but on Android height: 100% (or 100vh) property applied to <html> tag does not appear to work and nothing is rendered. Fixed values seem to work just fine but aren't suitable for such a wide range of device screen sizes. Looking for any useful resources or information regarding this issue. I'm starting to lose hope, asking here as a last resort....

Webpage suddenly not loading

I've been using HTML to make a soundboard. Last week I updated it with FileZilla, no problem. Suddenly today I edited the HTML page (frame_a.html) and uploaded it (overwriting the one on the server) but all I get is the old version. Here's the page: https://www.fbesp.org/sndbrd/frame_a.html I've tried different browsers. I downloaded the file from the server, and it's the right one. (I made the background grey, so if you click the link above, you should see a grey page.)...

Bootstrap offcanvas hides the nav without using overflow:hidden! No x scrollbar! What magic is it?

here is my codepen: https://codepen.io/noobcoder137/pen/BaeLeYK I have checked every possible html element, but there is no overflow: hidden. How does bootstrap hides the nav whithout having an overflow scroll bar?! I need to figure out the magic behind this, pls help me, I've been analyzing the css code for hours....

Grids

I'm specifically making this to bring a good understanding of grids.

Firefox button height transition bug fix?

For some reason my css works fine in chrome, but in firefox I get this weird bug causing the button to weirdly stretch vertically. https://codepen.io/23chromosomes/pen/jOoqLwV...
No description

Vite Production Build: CSS/JS Not Loading - Need Assistance

I'm having trouble with my HTML, CSS, and JavaScript project using Vite. I'm building a Recipe Website with the MealDBAPI. The project works locally, but when I build it for production using npm run build and preview it, the CSS and JS files don't load, and I can't figure out why. I've tried many solutions but nothing has worked so far. after I finished the website,I decided to build it for production, the css and js doesnt work anymore. Here鈥檚 what I鈥檝e done:...
No description

Flex-item with fixed width doesn't shrink in flex-direction:column?! Is it a bug?

here is my codepen: https://codepen.io/noobcoder137/pen/oNRzMaY the flex item shrinks when the direction is set to row, eventho the item has a fixed width size, but it does not shrink when the direction is set to column, is it a bug or just a normal behavior? In any case, this behavior is not documented on developer.mozilla.org according to the documentation on developer.mozilla.org: "The flex-shrink CSS property sets the flex shrink factor of a flex item. If the size of all flex items is larger than the flex container, items shrink to fit according to flex-shrink."...

Hero Img spacing

I have this hero img and can't figure out why there's that space (made aqua for easy spotting). All my headers have a margin:0 and I've tried playing with padding as well. Maybe I'm missing something with the hero image HTML...
No description

Breaking long lines of command lines, on mobile.

I've got a page with a long line of code. It's wrapped in <pre><code></code></pre>. It is the widest part of the page if I keep minimizing the rest as it doesn't break. It happens to be a git clone command, so it has a long URL on the end. Is there a generally accepted place to break up the URL, and allow it to wrap? Do I need to specify something to make it typeset in a nice, obvious way to show that it was broken to display but shouldn't be on the command line?...

Block Display Item Scaling issue

Hello! I am making a little portfolio website for my assignment and i ran into an issue. The big pictures are not scarling properly. Is there a way to fix it. Or should i use a different display type that would make this work. Im not sure what to do. The red is how it looks like when im inspecting it and the yellow highlighter is how i want it it to be. Ill appriciate your help 鉂わ笍...
No description

Scrollable aside

Hello, probably someone ask this already but i just couldn't find it, so i want the lyric box (on the right side) become scrollable instead of expanding to the bottom, so that the height is following the left box content
No description

How would you recreate a button like this?

The main decoration are the little crosses in the corners if you see them. I've seen similar buttons one or two times before but only today tried to recreate it and got to something a little different but nice https://codepen.io/fgvdg/pen/gOJwLNg Anyways, Im interested if someone has made a button like this before or someone knows how to do it? thanks in advance. the button is from here https://nucleoapp.com/...
No description

What's a good way of handling specific styling for components?

Let's say I have a basic slider component that displays a slider. Let's say on page A I want the slider to have some type of margin-bottom because there're other components underneath of it. Page B I don't want it to have any margin because it's isolated on its own....