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

What is the difference?

What is the difference between
flex-direction: row-reverse;
flex-direction: row-reverse;
and...

does input box has a minimum width set by default?

even though i have not given my input box a width or min-width.. it still never goes below 202px.. is it becuz input box has a min width set by default?

grid help

i have two rows in a grid container with 3 items.. i want to make the first row have two columns and the second row only one column.. how do i do this without selecting each individual item?

Hi! Very new to frontend, why does this happen?

I am building a website for my own business, but one of my card's text is overflowing. My first (and only) idea was to use display:flex and flex-wrap:wrap, but it did not solve my problem. Can someone help me?...
No description

how to modify the slope in svg shape

I have created one svg shape. i want the slope start from middle. I tried. But i dont know how to make it. Can anyone please help me. ``` <svg xmlns="http://www.w3.org/2000/svg" fill="none"> <g filter="url(#filter0_b_1_2556)"> <path...
No description

First feedback

https://github.com/harry05555/scoot-multi-page-website The Figma file is in the root. It's for practice purposes and I don't earn any money with it. I want to learn how to make the vanilla html&css/sass and the handsout from Figma or export everything correctly from the finished design to code....

trouble with layouts

Hello everyone Iā€™m new to web development and know the basics of HTML and CSS but having trouble trying to build a layout and creating webpages for my portfolio can anyone please help with some tips or resources please ?

JS Fetch Api how to

Hello, How can I get this site "data"? https://www.dre.cx/ Fetch response json did not give me back anything....

is it bad practice to " * { box-sizing: border box; } "

is it bad practice to " * { box-sizing: border box; } "

@property not recognized in shadow DOM

Now that @property recently got shipped with firefox 128, I thought it would be a good idea to try it out. It works just fine when using regular HTML and CSS But if I use it in a shadow DOM, it suddenly gets completely ignored....

transition property not working on a div with border-radius

.circle { color: white; width: 100px; height: 100px; /* border-radius: 50px; */...

API_KEY Problem

I am making a chat bot with ChatGpt, but i am getting an error where it tells me that i did not provide an API KEY but i did, i cant seem to find a solution or where did i go wrong in my code, so anything helps, thank you
No description

Overflow: hidden Issue

Hi all, Having an issue with overflow, or the best way to code this. I have a simple button that will copy my email address via javascript. on clicking the button I have a 'copied email' message slide up, but the overflow is cutting off the hover shadow and shadow of the pop up. Is this is easy fix? Any help appreicated, codepen is below https://codepen.io/lewiselliottmorgan/pen/XWLWJbR...
No description

content scaling in proportion no matter the screen size

Hey, i've noticed that on some websites (this one in particular https://piccalil.li/), that even though text ("Most popular this month" for this example) and elements (the cards for this example) have a minimum size set with clamp, they still scale below their limit and keep everything in proportion even on extremely minuscule screen sizes like 180px. I don't quite understand how this is achieved. I've used exactly the same code as the website for this example and still can't replicate it. As you can see, in my codepen and the image examples, the behavior isn't the same and instead mine overflows. https://codepen.io/deerCabin/pen/PoroYLO i'd really appreciate some insight, thank you in advance....
No description

screen sizes you should cater for

Hey, I notice that the majority of people suggest the minimum screen size you should cater for is 320px. When I look at template sizes in dev tools, I notice things like Nokia and some of those phones have browser support. Those screen sizes are below 320px, perhaps 280px I believe? Is that something you have to worry about? Thanks in advance.

Dev tools phone size

When i click on the dev tools in chrome and choose a phone size, lets say iphone XR. it shows my page being responsive but when i zoom out the positioning and margins/padding are completely off. What actually resembles the actual size of the device in the dev tools,t he initial time i choose a mobile size or when i fully zoom out? My apologies for the post being confusing but this is the best i can explain it....

Using REM unit to secure its same position on the screen when font-size changes?

I'm trying to understand the behavior of REM units when used for element positioning. While pixels (px) maintain a fixed position regardless of font size, using REM seems to always lock the element's screen position. I expected REM unit to cause some shifts in positioning based on the root font size. Can someone explain the relationship between using REM for positioning and how it affects an element's screen location? As an example: I was doing this desktop only form for learning (Github repo: https://github.com/Suqbs/sign-up-form and Live: https://suqbs.github.io/sign-up-form/) and *Passwords do not match is what leads me to this question because even if the font size changes it is still there, not even shifting. So, this isn't a problem to solve but i want to understand how is it doing this and is this applicable for every scenario?...

Paragraphs displayed partially in smaller screen

I m having this issue where the paraphs imported from a js file where they ve been stocked as array are not showing up entirely in @media screen , can somebody pls help me with this ?

box-shadow blur causes gap around fixed header element

Got a weird issue. Have a fixed header, and apply a box shadow on the bottom of it. If I use blur (as one would) on the shadow, a tiny gap appears around the header, through which scrolling elements behind the header become visible. It's kind of visible at the top and left of the attached screenshots. Bit of an issue when adding a dropdown menu below the header. ```css .page_header { z-index: var(--z-index-header);...
No description

Input design method

Hey, if you had an input design like the example in the image, would this be the sort of way you'd go about it, or is there an easier/more semantic solution? Perhaps anything unecessary i've included? https://codepen.io/deerCabin/pen/NWZKoyy I'd appreciate any tips, thanks in advance....
No description