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

tabbed navigation Help

https://jsfiddle.net/p5dnvxr6/ can anyone help me? setTimeout do not work while switching between tabs

How to make this text transition animation

https://www.veed.io/view/0d3307a9-842a-4b92-893a-a161d5271ced?panel=share Hi, i am struggling to make this infinite loop of transitions between different words. Can anyone guide me please. Codepen would be very helpful❀️...

get (-) when i try too input the value for my input type="time"

error: (The specified value "08:-30" does not conform to the required format. The format is "HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS" where HH is 00-23, mm is 00-59, ss is 00-59, and SSS is 000-999.) ```javascript let startTime = document.getElementById("startTime"); let endTime = document.getElementById("endTime"); let totalTime = document.getElementById("totalTime");...

After one cycle of animation the screen goes white, How to avoid it

https://codepen.io/stressunfit/pen/PoXdyNv Hello.., so i made this animation which transitions betweeen multiple images but after one cycle completes empty white screen fades in and out, how to avoid it?. Any kind of help would be very helpful. Thank you.....

How to check the screen size laptop like 14inch

i want to check if this will happen when someone using 14 inch laptop.
No description

New UI in Opera and Edge messing with media queries (render window no longer full width of display)

A media query of min-width: 1920px will now fail because the innerWidth in these browsers is no longer 1,920 pixels on a 1080p display. Same story with 2,560 pixels on a 1440p display. I've tested this in all popular browsers on my monitor (set to 1440p), and the only browsers that behave as expected are Chrome and Firefox as they don't have stupid 2-pixel (Opera) or 8-pixel (Edge) gaps on the left and right of the webpage rendering window. https://dylricho.top/retrieve-window-innerwidth-for-css-media-query/...

How to manage font size/spaces if same layout of tablet design need for Phone

I have a PSD file for tablet design. The same design when I try to develop for mobile with less than 300px width view port , I am afraid that font size is too small. Problem: 1. The font size got to small if make font size small using media query 2.UI breaks if keep the same font size as specified in photoshop template 3. Can some one help to achieve mobile UI for this image attached. The same ui should work in Tablet....
No description

A certain number of divs in 1 row

Hello, i remember seeing a video for kevin doing smth with grid where had a stack of divs as a grid and their width grew and shrunk for a small amount before wrapping to the next row, how do i acheive that, like i need to have whatever the width can take but also keep all the divs with the same width in 1 row, if possible in tailwind, also if someone can tell me how can i have all the divs have the same dimensions. thnx in advance

The grid(of N by N size) which I am making using flex box and wrap is getting outside of it's box

https://codepen.io/asel345/pen/mdvVJRO This is a segement of my code which is making a grid inside a div but the issue is it is making less boxs in width and more boxs in height...

Github pages link not working

how come this link doesn't work? to my website? internetslave.github.io/personal-website/ i put it on overleaf and it don't work / when i have it in my pdf it doesn't work either if u just click on it it goes to a github page not found page? ...

Accessible instant action radio group

I'm creating a view mode "toggle" for my page that is pretty much exactly like view in whatever file explorer you use that will toggle between List and Tiles. In the first 2 screenshots I can see that windows uses a select/menu and I'm not sure what macos version would be called. However, ideally I'd like my design to be 2 buttons next to each other, like what google docs have for Align (screenshot 3) options but not in a dropdown, just 2 buttons (tiles/list) next to each other that function like radiobox group (are mutually exclusive). The issue I'm having is that the buttons will have an immediate action and I came across Adrian Roselli's post 'Under-Engineered Toggles Too' where he says...
No description

items center in tailwinds

guys is there a reason why items-center ain't working on html or it need smt else

Chrome Headless

Hi there does anyone perhaps know how chrome headless works especially when making screenshots? I need my screenshot to start 100px down on my page but can not get it to work properly. Any help would be hugely appreciated. Kind Regards...

How to center my text good.

Hi guys. I want to center my text next to the image. But its not really working out. Even if i put it next to the image. What is the best way to do it? I want it like the example on the second picture https://codepen.io/Boeroe/pen/BaMoMJJ...
No description

is this using clip path ?

Anybody knows how I can get the shapes on the images ?
No description

Adjusting svg fill full width

Hi, Am trying to design a layout for mobile resolution . The svg I tried doesn't fit to the entire width. Brief: CSS: For desktop...
No description

How does Neetcode.io make the one way tree chart with arrows?

Is there a special name for this kind of design? I also like the click interaction.
No description

Following Kevin's Space Travel Site Scrimba course and cannot get the underline indicators to work.

I am up to the " The design system / Underline Indicators Part two, and Part three section" , and for some reason the interactivity that should be happening when hovering over the list items, and the buttons is not happening. I even copy and pasted Kevin's code into VS and ran that and it still doesn't work. I tried it in a separate browser and it doesn't work either, however the exact same code does have the interactivity in Scrimba. Weirdly, even though
.underline-indicators > *:hover,...
No description

word-break: break-all sometimes fail on really long text (~10000 characters), why and how to fix it?

I simple have a span element, with random letters (a~z) on it, around 100000, no spaces. I used word-break: break-all, and it worked as intended, the text would not overflow. But... There are random points in the doc where some letters do overflow outside. On this amount of text, it usually happens 3 or 4 times in the whole doc on random points. The screenshot shows that all text is perfectly aligned (cause it is a monospaced font) except on these random areas where a couple slip outside... Is that just the browser failing on the huge amount of characters? Or something else? If so, is it fixable?...
No description

(Css Spec) Clarification on containing block definition

Guys I have a little question about containing block, By definition containing block is the nearest ancestor that is a block container(containing only block-level or inline-level boxes) or which establishes a formatting context but here in this code : ```html <DIV id="div1"> <P id="p1">This is text in the first paragraph...</P> <P id="p2">This is text...