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

Is vue cli just a bundler like vite or there is more to that?

Hello, can someone explain what vue cli is please, from what I've understood, before introduction of vite, we were using vue cli which basically is built on top of webpack, so long story short, is vue cli just another bundler?

help with first backend project

im gonna be doing my first backend project, im already familar with frontend, and i just finished a 4 hour mysql tutorial the project that i picked is called "personal blogging platform api", and these are the tasks that im given:- Return a list of articles. You can add filters such as publishing date, or tags....

#Buttons, how to style and functional please.

Hi everyone, I am Aida. A Newb. Just started coding class 6 weeks ago. I have a app assignment, finding it hard to style and then add functionality to the buttons. I have one button that has a 3,2,1 count down. Tells you to breathe in and then out 3 x times. With different sentences each time . Then I have five buttons with the names of five senses to display either colors or image related to that type of senses( touch, taste, etc..) Help please. I know CSS is to style and JavaScript to function but I'm making a mess...

Best Way to Display Labeled, Non-editable, Information Semantically

Hello all, less a CSS question and more of a general best practice type of thing. My company has a web application where it's primary purpose is to display heaps of information. We have "reports" which are tables of information but within detail pages we most often display labeled information in the form of a disabled or read only input. My question is from a best practice and accessibility standpoint, is a disabled input really the best way to display this information since it wouldn't be interactable or editable or would a set of styled divs and spans be more appropriate?...

One corner, two border radii

Kevin just put up a tip o the week article on 2 value border radii: https://html-css-tip-of-the-week.netlify.app/tip/mutliple-corner-radii/ One of the examples says that you can use slashes in the individual radius long-hands. It seems like this should work but it comes back as invalid for me in devtools. Am I missing something? https://codepen.io/jsnkuhn/pen/jEWbeMv?editors=1100...

How do I not make the background look choppy on mobile

I can drag down to see white and the top bar is white too, is there any way to fix this? I have set the background to No repeat.
No description

100dvh bug on mobile

I’ve run into this issue on several sites I’ve built, and even major sites like apple.com seem to be affected. In the attached video (from a professional studio), you can see that when I scroll down and the address bar collapses, the fixed header and footer shift, the header even disappears. This occurs in both Chrome and Safari, though it seems to work correctly in Firefox. It feels like a very common problem, yet there isn’t much information out there about it. Is there a reliable workaround? Why hasn’t it been fixed yet?...

use cases for calc

I never know when I should use the calc property. What are some good use cases for it?...

How to increase hover region of mega menu

I have a three-tiered mega menu - one level across the top, then beneath that, there's a wide grid with ~30% being a left-hand menu and, when hovering over the left items, the right side shows content. This might be a lot, yes, but, it's what we've got. The "hoverable" area of the items on the left is very annoying. When moving from left to right, people frequently move their mouse just over the edges, either up or down. I really want to do something I learned years ago and have completely forgotten how to do. There's a thing people do to add an invisible triangle shape at the end to increase the hover area, right?? I've tried to mock it up here, I don't fully understand how it works, but I know I've seen it in the past. Any thoughts??...
No description

Looking for interactive php course

hi I'm wondering if anyone knows a good interactive course for php. like boot.dev or brilliant.org but they don't have one (at least the last time i checked).

How to teach new Padawans CSS sizing properties?

For blocks there is two ways of doning things classic or logical width/height or inline-size/block-size {padding,margin}/{padding,margin}-{inline,block} ...

Data bindings in Vue

Hello, can someone confirm if my understanding of data binding is correct please. From what I've understood, data binding in vue is the link between our variable in our scripts and our UI. That is, say we have a variable message and this message is displayed onto the screen, this is what we refer to as data binding? (link between model and view). Here is a definition I came across but don't know if it's correct: ```...

Containers in flex

Can someone tell me why, when I have containers inside a flex wrapper that have for example container-type: inline-size; set, the flex layout completely breaks? Is it a bug or a feature?

Unwanted whitespace with subgrids

Hello everyone. I don't find anything useful to help me understand why the first row on this codepen has that vertical whitespace (on the image it's the red area) when I put gap: 30px on the grid container. I can fix this whitespace by putting gap: 0 on the container but then I lose the vertical gap between the cards so it's not useful. What I want is for the card to take a little height as possible and sharing the available space. https://codepen.io/Uurshin/pen/pvgJLOP...
No description

get auto generated `aspect-ratio` value in CSS?

Is there a way to get the auto generated value created by aspect-ratio in CSS? I know I can pull this from computed with JS but it seems like there should be a way to do this in CSS?

Need help creating hover overlay

Does anyone have any idea how I can get that eye in the middle of my image? I've been trying to figure it out, but I just don't know how to approach it. I don't even know where to start but I do know that I need the pseudo class :after.
No description

`auto-fit` in combination with `min-content`

Heyy, I have a new question. I was just experimenting with auto-fit when I ran into this issue. It says that the grid-template-columns value is invalid: https://jsfiddle.net/KonerDev/c54gxq83/1/ If I replace the auto-fit with e.g., 4, it works, but then I loose the auto-wrapping behavior. What's wrong here?...

What's the difference between a static site generator vs a content management system?

Hello, I know that both a SSR and CMS is thing that we can build with software without necessarily high level of domain knowledge to do so. I also understand that SSR, well are just static websites just like it used to be back in 1990. Now with CMS, this provide us with the flexibility of creating "new content", what do we mean by that? It's like creating blogs for a blog website? If so, we would need to store everything in a database, no? So we would need a server etc? Can someone elaborate pls...

What are templating engines like .ejs and pug?

Hello, from what I've read, templating engines helps us to make our mark up language dynamic instead of static. That is, during render, we can set some placeholders in our html file itself which get replaced later on. I read that we can use loops etc in our html file itself, which is kind of interesting. Apart from that, can someone explain why a templating engine is important pls, what kind of cool stuff can we do with it?...

Why for whatever frameworks we use in JS, we must have an "entry point" in which our components live

Hello, whether it's in react or vue, I noticed that each time, we start by creating a "root" where our component will be mounted. Is it because we need to explicitly tell react/vue where to start so that they have an idea of what their virtual DOM will be when inserting new components? Else, they won't have any idea of the hierarchy of the components or where they live?