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 my margin does not work?

I'm working on a navigation bar and have set a margin on the .headerContainer, but it doesn't seem to be taking effect. Could you help me understand if I'm doing something wrong? Here is the codepen: https://codepen.io/hackett-lai/pen/abebjow?editors=1100 ...

grid item auto stretch

Hi guys, I want the height of grid item fit-content but it auto stretch. I use align-self: start for grid item but it does not work. Can anyone help me explain why? Here is my css container ```css .container{ display: grid; grid-template-columns: repeat(3, 1fr);...
No description

Div Background Images & Contain/Cover

Hi, I'm having some problems with the whitespace appearing on these Card elements I'm using. When the browser window is tall or wide, there is white space showing on either side. I attempted using 'cover' in the third image here, but it's cropping off the important information. Trying to find a way to make the cards responsive while keeping the aspect ratio and also not showing the white space. I added a blue 2px dotted outline around the 4 section grid. The red 2px dotted outline shows the Box that contains the three cards with the image. The yellow 2px dotted outline shows the three cards within that. The final image attached is the design file from Figma....
No description

Sections overlapping and a bottom scrollbar appears (Tailwind CSS)

Hello, guys! So I'm building a portfolio using Tailwind CSS and I have a main element (where all the content will be) and I added two div's that have flex-col (added in the main element). However, when I add it, it seems like the div's (or should I say - the sections) are somehow ovelapping and a bottom scrollbar appears. Can someone help me, please - I've been stuck on this for 20 mins already! GitHub link: https://github.com/GeorgeDash/personal-portfolio...

i'm wondering how can i handle SVG's that stack in specific position in my design ?

i do have a lot of SVG's image in my design that stack in specific position , and i wanna know should i give them an absolute position or there is an other way more efficiency to deal with this situations

what happened to image() for css?

I was watching videos on background image stuff, and found Kevin's videoabout image() for CSS and how he was excited about it, and he noted that it didn't have browser support yet, and it's been almost 2 years now so I figured it did by now, but I went and checked and it still has 0%, and I can't find any info on what happened, was it ignored cause there was a better solution or deemed unnecessary or not useful enough, what happened and why was...

Cover SVG Path with a pattern to create Brushstroke effect

Hey there! I wanted to make a follow-up question to my old question. I want to create an animated text marker highlight effect. I got the animation, but now the "brush" pattern is missing. I only have one straight line. I found this https://blog.tentaclelabs.com/posts/2022/04/draw-a-pattern-along-a-path-using-svg and wanted to follow it (since I don't know any better way. If anybody has a better idea to do this, I would love to hear it). I got this https://codepen.io/FreakeyPlays/pen/BagXXzm without the JavaScript. But my "Marker"/"Pattern" is way too small. How is it possible to make the marker bigger? I thought I could control it using stroke width, but that does not work. Another idea I had was to draw the path on a tablet using a brush stroke already and try to animate it. But I don't have a tablet right now and can't test if the SVG will have a path with the brush pattern. Has anyone ever tried this?...

Advice on making this widget better

Hey guys! I'm making a book "slideshow" on Google Earth and just realized it gives me the option to customize the description widget (top right corner) with HTML and CSS. I'm pretty good at programming but not quite good at designing. Any design ideas on how to incorporate the location, quote, and anything else that could make it look nice? Thanks!...
No description

struck on flex with image

I had a image and an paragraph but the paragraph is just one line and the height of the image is so long , I added a flex on it so it can come up with side by side , I am struck at how to reduce the height of the image so that it can be properly aligned with paragraph ... Exactly I want to make as the picture below here is the codepen link https://codepen.io/GOPI-CHAND-SADINENI/pen/dyxbLbb
No description

background fontstyle black index number inside flex-col container

So what I'm trying to achieve is aligning an index number with lowered opacity into the center of a flex parent container. This ain't working though properly. Therefore I tried troubleshooting by adding
margin: auto;
margin: auto;
, without any success though. ...
No description

Tips to build a sidenav bar using react and vanilla css

Hey guys, I'm new here!! Trying to build a sidenav bar for my clone app with react and vanilla CSS only. Would be awesome if y'all can share some expert tips or provide any references to follow the best practices

flex: 1; grid equivalent

Hey, in this example i'd like main to take up all remaining space. I'm aware that it being in a 1fr row is only one fraction of the 100vh container, hence why it doesn't take up all the space. Is there a flex: 1; equivalent in grid to make this sort of thing happen? Thanks in advance. https://codepen.io/deerCabin/pen/wvVwmeM...

Make a Background repeat smooth

Hi guys, can anyone share how they make background repeat smoothly? I have an image with repeated background but the edges of it doesnt repeat smoothly....

How to approach the text highlight with a vector.

I want it to wrap with the text. Tried with absolute positioning but it's not working Text: Comment fonctionne la cagnotte qui a du coeur ?...
No description

How Do Large Companies Manage Ongoing Accessibility Evaluations and WCAG Compliance per Module?

I'm working on a large React application with multiple modules. Maintaining WCAG compliance per module is challenging, especially as new features may affect accessibility over time. Managing this in Excel is hard due to the numerous fields and difficulty recording module accessibility. Do big companies build their own Accessibility Management Platforms, or do they use third-party services? How do they monitor and maintain accessibility as the application evolves?

In grid of 3 items keep middle item strictly centered

Image of desired result attached. I have container with 3 items. I want middle item to always be centered vertically and other two items to extend outward. What are possible solutions for this? I tried to approach it with flex and justify-content: center, but then having more text in bottom item automatically shifts all 3 items up, so middle item is no longer centered vertically....
No description