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

Struggling to stream openAI output and preserve spacing and strong html tags

hey guys so im basically using the openAI SDK for a project and im struggling to operate the stream functionality to live update the UI each time if anyones experienced with streaming the openAI output id gladly love some help heres my code...
No description

Grid transtion

Hi guys i want a grid transition where the hovering of item bring it to the center or to the side any one know how to start.
No description

Resource to learn PHP

Hello, I noticed that PHP is widely used and many companies are looking for that so I wanted to learn it and build project with that so that it add more weights to my CV. Can anyone suggest any resource where I can learn PHP please....

CSS: Using Attribute Selector

Greetings! I am currently learning CSS and came across attribute selectors. I am wondering: - When it is better to use attribute selectors instead of the usual selectors that uses id/class. - If it is efficient to use on a website. I have read that class selectors are usually faster....

HTML & CSS Absolute Beginner's Course - Can't access it

Hello guys! I've searched for this issue before posting, but since I didn't find anything related to this specific course, I decided to post it in case someone can help me (hopefully this is the right section). So I've been following along the HTML & CSS for Absolute Beginner's course on Youtube and noticed there are a few more lessons in Kevin's platform. I sent the email for the invitation but when I try to create and account it says: "Unable to complete action at this time. If the problem persists please contact support." Maybe this course is no longer available and that's why it doesn't let me access it? Or maybe some other kind of restriction? I was curious to check the full course, since the videos on Youtube are fantastic and I'm learning a lot even though I'm not new to HTML and CSS 🙌 ...
No description

changing styles through javascript

why is it better to change/add the styles of an element using javascript by adding/removing a class to it rather than using ".style"

What is special with display set with inline-* ?

Hello, I was reading a bit about display set to inline, inline-block, inline-flex. What makes the "inline" thing special? It takes the width of its content and doesn't add a new line ? Is there anything more to that please. I didn't just inline-flex yet, so I don't really know where we can use them or what they do :c

How to have a shared dashed border override a solid one?

When using CSS tables or grids with a default border of type solid, how can I override a particular cell/area to have a dashed border instead? Adding a more specific selector does work where the border is not shared, but doesn't work where it is shared. I can see why this would be the default behaviour, but I can't find a way around it. (For example, z-index doesn't help.)
For an example please see https://jsfiddle.net/s2nzowxm/....

Dialog consistency between Chrome and Safari

Hi, I've got a very simple dialog here: https://codepen.io/rctneil/pen/ByNyzGY. I've stripped it back from all styles to aid in getting help. I've added polyfills for closedby and the invoker commands. Basically, it works perfectly in Chrome but in Safari, there are several issues....

Transition not working in and out

hi i have issues regarding css transition and github. the css transition works only on the beginning although i set in and out in the hamburger menu and the header . after i deployed my static site the img folder doesnt show in source which i used in background-image and forsome reason the gitignore doesnt work while i stated in to ignore /scss and main.map.css . github repo :https://ilyas-draissia.github.io/make22/. website :https://github.com/ilyas-draissia/make22...

Asking for help : code review react native expo

Hello Guys im working on a taxi ride sharring app in my country i have build the socket the server the user app and the driver app and i need support from an experimented dev to review some of my code to now if im doing things right . It will be really helpfull :ts: :react:

style queries - have any questions or use cases?

I'm planning a series on style queries that will go over the basics of them, footguns, and work-arounds, as well as several practical use cases for them. - Have you tried using them and run into issues or not seen the point? - Have you avoided them for reasons outside of browser support? - Have you used them and have a killer use case that you could share?...

aligning flex items

i have three items, i want the first two items to be aligned at the beginning, and the third item to be at last of the container

Heading of an article element

When using article element does the heading element has to be a direct child of an article element???

Mask or Clip path for div with svg

https://codepen.io/melasculla/pen/vEOEYZX?editors=1100 hello there, i have an svg figure which is 1 one and i used it with mask and it worked fine but if i have smaller shape height bottom are cutted out so i've decided to use 2 svg path's for top and bottom and im having hard time to figure it out i need to have middle part visible so top and bottom should look wavy...

Should a standalone content be wrapped by `<article>` while it's its page?

For example, I have a blog article page, should the page be like ```html <main> <article> <!-- content -->...

Do verbose hyperlinks help SEO?

If I have a heading like... Macintosh Security ...then do I need to repeat myself for subordinate hyperlinks?...

Help with svelte, vite, yarn, tailwind

Hi i have problem i use latest yarn berry version, tailwind, svelte, vite and i have some problems with my website when i run yarn dev i can enter the website but i get a console error 😦