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

What do you think about my html?

Is it written well? If not how can I improve it? Are my class names written well? I had a tough time with it. ` <main class="main"> <section class="design-description-1">...

Am I using the BAM naming convention correctly?

If so, doesn't this create a very long chain of double underscores? making it inefficient to type and read? ` <aside class="aside"> <div class="aside__block">...

Need help with hovered item

When I hover to the three dots the background is showing on three dots I want the background to still be active if I am on edit go live button too. This is the link of the code https://codepen.io/tobygxgr-the-sans/pen/OPLrRdy...
No description

Second dialog element not working and I don't know why

Hello I am trying to make modal images with the <dialog> element and I can only get one singular image to work with it. Any idea why? https://codepen.io/davesamuels1998/pen/MYgzxrY...

is it fine to explicitly set height: 120px for an image?

Kevin said don't use heights and don't use pixel units. I want to create a grid of cards where the image is the same height and width for every card. Each card has an image and some text right below it. Unfortunetly all the images are either too tall or too short. I did manage to get a hold of the width by using grid-template-column: repeat(auto-fit,minmax(300px,1fr)) but I'm not sure how to set the height. I was thinking of setting grid-auto-row: 500px or something but I remembered that setting height and px are bad. Edit:...
No description

How to position the quote illustration?

I'm very bad at positioning illustration, and trying to get better. Here is my code pen, and thank you! https://codepen.io/Jonah-the-lessful/pen/XJrodNy?editors=1100...
No description

grid

How can I center my grid both horizontally and vertically? place-content: center doesn’t seem to work Live version : https://kfk-ronilucylucys-projects.vercel.app/ https://codepen.io/etrbbr/pen/JoPwYgr...

CSS Positioning inconsistent across browsers

I have this cute little svg/psedo-element positioned 12px to the left from the border of the parent element... In chrome, it looks okay, but in firefox and microsoft edge looks much farther away than i have set. Its parent has position: sticky and the pseudo-element has position:absolute I do have a css reset applied,. I also inspected to check if firefox was adding styles that weren't in my reset, but that doesn't seem to be the case......
No description

Played along the tutorial ||Learn CSS Grid the easy way|| but it didn't work the same

I played along the tutorial Learn CSS Grid the easy way in the git provided files but it didn't work the same as the mentor was doing. How to solve this problem? ```css .testimonial-grid{ display: grid; gap: 1.5rem;...

Set height of two column grid container to the height of the small column

I have a grid container which has 2 columns with different content inside. I want both the columns to be of equal height but that height should be the height of the smaller column and not the bigger column. The bigger column will have scroll bar so we can scroll to view the content of it. A simple demo is as below: ```html <div class="grid"> <div class="short">...

SVG fill not updating

I am trying to make my last star color gray. I have selected and written the style but its simply not applying. How can I fix? ```html <div class="d-flex column-gap-2"> <img src="./assets/images/star.svg" alt="Star">...
No description

grid struggle

https://codepen.io/etrbbr/pen/EaYObpW Hi everyone, I can't figure out what I'm doing wrong. I can't make it look like the design. Can you tell me what I'm doing wrong?...
No description

How to get 'sticky' column to work in table with a colspan?

I have a complex table -- see screenshot of top left. Requires scrolling in both dimensions. I have got the sticky working for header row and first column OK, using: ``` .perspectives-table th:first-child, td:first-child { left: 0;...
No description

Flicker in background transitions using keyframes

I've finally dived into the world of keyframes (despite fears of my skill limitations πŸ˜…) and re-made the hero section for my businesses website. Seen here: https://divanbleu.com/en/home/ But I get these little flickers from time to time. I figured it might be server resources that weren't enough so I reduced the image size but any smaller will start getting too grainy. I work in WordPress (Bricks Builder Theme) and here's the css on my hero section element. Is there anything about keyframes that I am missing and should know? %root% refers to a class called .hero-section...

I need help on making website scroll timeline

I'm trying to achieve a timeline that goes till the end of all the days when It comes nearly to the center of the screen but after a period of time it sadly starts to appear much later which leads to the last one appearing nearly at the top of the screen so what can I do to fix this? ```css .timeline-bar { content: " ";...
No description

grid-row-columns: image overflowing out of grid item in grid layout.

Hello everyone. I am trying to create a grid layout that shows 3 columns vertically and than 3 columns horizontally using grid-template-rows. I don't want to achieve this using the auto-fit or auto-fill attributes with grid-template-column. I want to be able to define the height of my rows within the grid layout. The issue is that my image keeps flowing out the bottom. I can't understand why this is happening or a solution. Any ideas? I am coding in react. Code sandbox: https://codesandbox.io/p...
No description

Sass (scss), PostCSS or plain CSS for a component library using React?

As the title says, how should I handle CSS? Is there a really bad reason using just plain CSS for a component library? I want to go plain CSS as much as I can and right off the bat, I can't think of a really bad reason to just use plain CSS....