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

Why is my top grid area so tall? Why is my address not aligned right?

https://blacklodgeresearch.github.io/website/about/ I'm using grid-template-areas to define an area for the name of the hackspace top left, and nav bar for the rest of the top row. It appears to have more vetical height than I as expecting, and I would prefer it to collapse down to the max-height of the hackspace's name (plus some padding that I understand). My browser inspector tells me that the vertical height is large, not the padding or the margin....

How do I use the CSS Grouping selector for several children

I want to set the style of a, a:hover, a:visitied and a:active, in the nav section of my site separately from the rest of the site. I thought I'd use a CSS selector of nav a, a:hover, but this selects nav a and a:hover not nav (a and a:hover). Is there a ... brackets for this, like for math?

Math in JS.

Can anyone please go through the code and let me know why converting from dollar to cents gives wrong result Steps: $32.5:Converting to cent->32*100=3200. value after decimal point is cent =0005. $10 to be charged extra if cost is less than $40 so $10 gets converted into cents as =1000...

react snippets not working

i tried to type createBrowserRouter and ReactDOM, but i got no snippet suggestion even though i have the react snippets installed

Outline transition duration issues

https://gyazo.com/9989a2e09cee6d53cbac555ef24d155a I'm trying to apply a duration on the outline for the start button, for some reason, it has a weird delay, not sure if you can notice. It immediately loads the outline, a bit, then, immediately loads the rest after. It's not smooth. Here's the code: ```js...

How do I choose column from 1-12 and make it auto responsive using grid?

Hello, I have tried to google and find YouTube videos, but I cannot find any solutions to my issue. The goal is that I know we could specify using the grid-template-columns with the trick of repeat() and auto-fill to make it automatically responsive:...

I'm stuck on Grid and Position

I want to place 7 svg images in the header of the page, which are in their own div, exactly on a specific point of the page, and at the same time, use the grid layout for responsiveness, and the photos will stay in their place with the zoom in and zoom out of the page, but be in tune with the grid flow. Sample codes: https://codepen.io/chegudev/pen/KKjorYK ...

Media Queries

Hello Guys, these are the media queries I use, Can you chip in some advice if I am doing it wrong or right? Thanks I do desktop to mobile, it's just a preference that's it. /* 2xl */ @media (max-width: 1536px) {...

How to recreate this component with (optional: TailwindCSS)

I am trying this but I don't know why I can't make this happen, everything is failing, clip path, background image etc, mission impossible for me, I would love to see how some CSS Wizards would solve this with the fade inside with the dotted pattern bg, fading border and nozzle grain bg ish. Thank you! ❀️ I don't have any URL, otherwise I would inspect it and see how they have done it....
No description

grid breaking my brain

https://codepen.io/Miss-Fox/pen/WNqzOdm?editors=1010 each .collections-item is the same width.... each .collections-item .img-wrapper__lg is the same width... each .img-wrapper is the same aspect-ratio .... and has an overflow: hidden.... so why does the last one have a gap in between the three small images and the first two , their row of three images overflows onto each other?...
No description

how to Remove border in input while focus in css

```css #search{ width : 300px; height:50px; padding-left:10px; ...
No description

gulp add source maps from compiled scss file

Hi, i have this gulpfile.mjs in my project. I want to add source map from my SCSS file. How can i fix this? It does not generate map, i need it for better debugging

Increase additional height of a dynamic element

I wanted to increase the height ( ON HOVER to show the description ) of the div element which has a dynamic height of the inner element (i.e. an image), if someone can help me with this query it would be really helpful πŸ™ Basic HTML: ```html <article class="gallery">...
No description

nested routes in reactjs

I want to display the content of the nested route (e.g., Cake) and hide the parent component’s UI when navigating to /deliver/cake ..here /deliver is parent route Codes I only include main part of code App.js ...

Best email API for Next.js apps?

Part of my product is supposed to let users send/receive emails using a custom domain (which they would buy elsewhere like Namecheap) but I'm not sure which ESP would have the best API for me to use. Any input is appreciated!

Prettier Configuration

So I have a CSS code as below: ```css h1 > * { /* some styling */ }...

SVG - Fill the overlapping part of two <circle>'s.

I've created a SVG with two <circle>'s that are placed next to each other, with some part overlapping. I want to fill the overlapping part with a color. I'm trying to explore <filter> but short on time, would appreciate if someone could help me with it. ```html <svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg"> ...
No description

is 960grid still relevant? if not, what's the alternative?

Hello, All my experience is reading "Head First HTML" and "Head First Web Design" which I appreciate are quite old. They recommend using 960grid. (https://960.gs/). I wonder if 960grid is still relevant or if there are better "frameworks" (Is 960gs a framework :S ?) I just want to create a personal website. Nothing really fancy. Any comment in the right direction will be appreciated. ...

Do you have a list of different root font sizes?

I'm looking to find a list of font sizes that I can use in my roots, to copy and paste in my projects. Do you guys know where to find this, and do you use this?

Flex or Grid for cards?

Hey, i'm building a CSS project with cards, i'm really confused if we should use flex or grid for these cards. I'm preferring grid as it won't shrink the sizes of these cards at all, and they'll offer a structure from the parent. However I'm Worried about responsiveness, should I use a breakpoint then? or do you guys have other suggestions
No description