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

How to prevent a div going under a sticky div?

I want the text messages to not go under the sticky input.
No description

popover api and anchor

is the html property anchor="element_id" not a thing?

Text fade in and out CSS

I want to make the text go transparent in the top and bottom of the circle and be able to scroll

CSS 2 Column Layout

Hi front-end friends! I have a blog post layout in my head, but after some searching the web, I can't quite seem to find exactly what I am looking for. I have also messed around in trying to code it with grid layout, float etc. but can't get it right. I want to know if it is possible and if anyone has done something similar? I want a two column layout, but at the top of the right column, there must always be a featured image, and the text for the blog post will start in the left column and overflow to the right column, without explicitly having to hardcode what text I want in each column....
No description

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’s what I’ve 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?...