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

Column wrap (clipping) using masonry

Just trying to figure out how to prevent object clipping. The column is breaking mid-component and splitting onto the next column ( see top of column 2 - it's a continuation of the bottom of column 1).. I'm sure there's something simple to change this. I'll put together a codepen if needed... (Using tailwind of course) ``` // parent component {/* Reviews */}...
No description

CSS Help Needed

I am a college student who works for a software company as well (primarily in a sales and support role). I have been tasked with rewriting our marketing website (the code has to be done in our CRM). Looking to build a two column lay out with text on one side and an image on the other. Followed a youtube tutorial to a T, but am still not getting the side by side layout. Any help would be appreciated. (My apologies in advance if the code is horrendous).
No description

CSS Grid - Span

I'm very confused with this example... span 3 / 5, but I wonder if my answer is correct and I'm just not finding the right answer when googling..so I'm then unsure 😄
grid-column: span 3 / 5;
grid-column: span 3 / 5;
...
No description

How do I make a Figma design

https://www.figma.com/design/3e81pYlYFjgrYpJPU5r12k/Contagious-Power-(Copy)?t=ugXna3IoOXDlFzDv-0 Guys, I need help in understanding this design. A person asked me to make this design as my test, and if I pass, I might land an internship. Either way, I need help in understanding this design because I have never made anything using Figma. I can't understand where the groups go and why there are multiple groups with the same style. I tried finding a YouTube video about this, but I couldn't. They were all about design tutorials. Anything that helps me is appreciated, even a video....

Help with a layout

This does not look quite right, but I am unsure what I need to do to make it better. I am trying to make it look as close to 100% of the design as possible
No description

Import types from seperate file without typescript generation export

So I am working on a project and want to import my types from a seperate file, but if I do that, typescript will generate this at the bottom of my js file. export {}; Is there any way to circumvent that without defining the types in the same file?...

Why Bootstrap Styles Are Not Active

The cards should be 4 in a row because they are wrapped <div class="col-12 col-md-4 col-lg-3"> but somehow it did not index.js...
No description

My navbar is not showing in the browser

I have already imported the Navrbar file into the App.js file, but the Navbar still not showing in the browser. Please how do I solve this?
No description

form elements overflow when using margin

I'm trying to put the form in the middle of the page using margin but it messes up the form elements since I'm using grid on form and it's elements

Is there a way to detect when an element wraps using only CSS (flexbox or grid)?

This article https://ishadeed.com/article/flex-wrap-detect/ probably answers my question, but I was wondering if maybe some new feature came up in CSS for this or maybe the article missed something?

Align text wrap with before pesudo elemet icon.

I had mentioned the image i want the text to be aligned the upper line first character but it is below the icon. the icon is set as ::before of the <p>. (I used font awesome icon "f1b0" )...
No description

Please help me with this

How to solve this problem?
No description

how do you make "code snippets" look presentable?

Hey, i'm trying to learn how to structure code snippets using the pre and code tag nicely. I'm referencing an example on this website as i'd like to know how some things are done (https://piccalil.li/blog/a-more-modern-css-reset/) and my attempt is here (https://codepen.io/deerCabin/pen/VwJvZMg). I have a few questions regarding this: 1. How would i add space between the text? On the example website, it seems like there's padding/margin above the elements but there is a mix of span tags and raw text, the raw text of which margin/padding top cannot be added to, so i'm not entirely sure if this is the method? I also don't see any margin/padding set whilst looking in the dev tools. (see the first image for this example.) 2. On the example website, there's a span tag containing the text "*, *::before, *::after" with each selector displaying underneath eachother on the page. I have a similar layout in my example however mine display next to eachother as that's how they're written. How would i allow them to wrap? perhaps text-wrap? (see second image for this example)...
No description

Failed to display a message in a div but shown in console

Hello I have a page where I can add an organisation. But I dont want to add org with the same name ofc so I have some validation. Now the problem is, it doesnt show the message in the error div i created. It does get logged fine in the console though. ```Adding new organization with data: {"_csrf":"p2isoXX1pMa5t7G2RKgxPUOgkYkIBkobZKGNt10RdxJiOwZyn13KkkyWkqCUgoWCJYUFDSKTvLBpNSs2XJK81G4pQnRWWjIQ","${_csrf.parameterName}":"${_csrf.token}","organisationName":"Aman","username":"gertzsfrf","password":"hello@1234"} api/organisations:1 ...
No description

my selector is not returning a value

why when i select a value it doesn't return anything even though i did what i supposed to do ``` <!DOCTYPE html>...

Responsive NavBar with Tailwind

I would appreciate if anyone can point me to an online resource that can help me integrate a responsive NavBar using Tailwind.

animation not delaying

Hey, In this example, the slide-in animation occurs first making the div containing the text slide in from off the page (it's inside of a div as there will be more content). After the animation has finished i'd like the levitate animation to occur which activates on the span inside the h1 I've set an animation-delay on the levitate animation however the start of it occurs before the delay and the end occurs after the delay, could anyone please explain why this happens? Thank you in advance. https://codepen.io/deerCabin/pen/poXJQpO...

"how to stop the "fixed" background image from overflowing into other sections

Hello Guys, Can somebody please help me figure out "how to stop the "fixed" background image from overflowing into other sections" of the website. I only want the fixed image to show when I scroll in that section, but I don't want it to be visible when scrolling to other sections, or overflowing from the top and bottom. Thank you https://codepen.io/Eddiev10/pen/YzoXRaG...

Why is the React JSX format a bit ugly, and how can I change it?

I don't like how the return works with the parenthesis and how the HTML lays out inside the return, is there any way to make it appear cleaner or should I just get used to it?
No description

when to use em and rem ?

I watched Kevin's video about this topic, and concluded that: use em for padding and margin use rem for font size and margin if we want consistent spacing...