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

my popup is being hidden

```jsx const Server = () => { return ( <div className="relative mb-2 h-[48px] w-[48px]"> <div className="avatar">...
No description

Not sure how to make this hero text animation responsive

Just wondering how I can make this hero text animation responsive? https://codepen.io/nwoodward/pen/ExBomaq The problem is that the h1 is a fixed width of 250px, and I animate the wrapper, title to its full width with overflow hidden. That just means that I can't have it take up the full width of the screen as it grows, I have to rely on breakpoints and fixed widths, which looks ugly (image 1 to image 2). I feel like it definitely should be possible to make this responsive, but I feel like it's beyond me! πŸ˜„...
No description

Object Element in Responsive Design

Is there a way to ensure that the contents of an object/embed element, in this case that content being a pdf, is always rendered on all screen sizes? The issue seems to be when an object/embed element is rendered on a mobile view/device, it doesn't render the pdf contents. if the view is set to "view in desktop mode" then the object contents renders properly. I've already looked at my view port meta tags and ensured that the correct attributes are being set, and that the correct mime types are declared on the object attributes. could there be another way to ensure consent rendering across all screen sizes?...

My first solo project a google page and i need feedback plz

Hello ive been learning front end (css+html) for like 5 months now ,had a couple front end mentor projects with guiding from youtube ,now i made a google page solo with no guiding i have little problems mainly with dropdown menu positioning i want your feedbacks please and should i move to java ?. ( sorry for the code soup and roots violation) https://ilyas-draissia.github.io/google-page/...

Vertical Header

I am using a left aligned vertical header (I know it sounds cheesy but I need a lot of page height) that's width is specified with a css variable --header_width. I then set the <main> with a margin of the same. This works fine, but when the page width is reduced, the header shrinks to a mobile header of 3 bars, but the <main> still has the width it had before. What is the best way of dealing with this, just a media query? I'm not sure if I should redefine the css variable or whether I should set the width another way, so I'm looking for recommendations. Many thanks...

Flexbox for a long page.

Hello everyone! I am a beginner and I still have not understood what is the best way to use flexbox if I want to have a long main page. If i have a quite long main page should I have some containers (5-6) for (navigation, main (if this main is long), sections, footer) and then display :flex for every container? Or what is the right way to do it? All examples at Mdn or W3schools are made only for one container.

Adjusting my image to fit within a column (grid).

Hello, I am currently studying HTML and CSS. Why doesn’t my image fit into the image grid? Is there any way to fix it? ```html <div class="container"> <header class="header">Header</header>...
No description

Items issue

So basically i finished my project but i have a bug if i have an item and like i double press the cart it adds the item to two places , i want only to add the quantity i have done like in my cart the plus and minus for adding quantity but here is my code addToCart: (state, action) => { const itemInCart = state.cart.find((item) => item.id === action.payload.id); if (itemInCart === action.payload && itemInCart === 1) { itemInCart.quantity++;...

how to style scrollbar with tailwind

this works ```css @layer utilities { .no-scrollbar { -ms-overflow-style: none; /* IE and Edge */...

border-radius percentage of what?

when we write border-radius: 25%; it means 25% of what?

Trying to use grid over flex-box in my own work, how would you do this?

Hey there, I'm trying to use grid more in my workflow over flex simply for getting used to it and getting enough experience using it to know when I should opt for grid. What is the best way to achieve the following? - I want to preserve this fraction of on desktop browsers as you see in the image. - I would like to have a mobile friendly version of this which uses a different fraction of space....
No description

Modern CSS without tools

Hi, I've been writing CSS for a long time, but for 99.9% of the last few years, it's all been with SCSS. I've been the beneficiary of nesting, mixins, functions, loops, the lot. It's incredible with SCSS can do....

Cannot make grid-container scroll on overflow

I am stumped on what seems like a relatively easy problem: make a grid container scroll when it overflow, specifically in the x direction. However, the container isn't respecting my overflow: scroll. Im stumped.. Codepen below https://codepen.io/fluffybacon-steam/pen/bGPYyMQ Solution: It was my MacOs settings. System Setting -> Appearance -> Show Scrollbars (Always)...

Trying to wrap my head around this example of list rendering in VueJS

I understand id starts at 0, there's a state variable for newTodo, and todos. In the function addTodos I can see we're pushing into the todos array with and id, and a new todo value.. the bit I'm confused on there is literally that array.. ```...

What `rel` value for miscellaneous feeds?

rel="alternate" is only valid if the feed is an alternate representation of the current document. My documents each serve a few dozen feeds for the user to pick from, and I wonder what rel I should use for those.

Custom buttons won't fire "input" event

I am building a calculator and I want to allow the user to also type it using their own keyboard, for that, I am trying to use "input" event on the input-text, so it fires on both ways of typing. The thing is that the input event isn't firing when clicking on the DOM buttons, only when I use my keyboard. Why? Codepen: https://codepen.io/leoncelestino/pen/NWZwYgq (Use mobile view for better UI)...

How to center button's content

I think I should really review some CSS topics. Could someone give me a light why are the contents inside the buttons not centering? They look awfully unaligned to the center. I tried anything I could remember ;-; Codepen: https://codepen.io/leoncelestino/pen/NWZwYgq...
No description

How to Vertically Center Logo and Icons with Respect to the First Row in Footer?

I'm working on a footer layout and I'm having trouble aligning the elements as I want them. I need the "Logo" and the icons in the "icon-container" to be vertically centered with respect to the first line of text in the "text-container", not with respect to both lines of text. Additionally, the "Imprint" text should remain horizontally centered with respect to "A long long text". Here's the relevant HTML and CSS code: https://jsfiddle.net/vqL23zu4/9/ `html, body {...

Grid layout scrollbar margin/white space issue

Hi, I'm building a small interface that uses grid for layout, and it's supposed to handle folders with saved chats in them. My problem is that until a scrollbar appears, everything looks good, but once there's a scrollbar, the items (saved conversations in this example) start missing the margin on the right - or rather, the scrollbar appears inside their margin, making the interface look imbalanced/bad. I'd really appreciate any thoughts on how to solve this. Codepen: https://codepen.io/danaxo-the-looper/pen/xxoPYjg...