Mannix
Mannix
KPCKevin Powell - Community
Created by omar_ab(@om4rAb) on 2/18/2025 in #front-end
Having hard time making Image fits the height | not easy as you think
object-fit is for img tags etc
107 replies
KPCKevin Powell - Community
Created by omar_ab(@om4rAb) on 2/18/2025 in #front-end
Having hard time making Image fits the height | not easy as you think
it's a background-image 😉
107 replies
KPCKevin Powell - Community
Created by omar_ab(@om4rAb) on 2/18/2025 in #front-end
Having hard time making Image fits the height | not easy as you think
nah I'm not doing voice coms
107 replies
KPCKevin Powell - Community
Created by omar_ab(@om4rAb) on 2/18/2025 in #front-end
Having hard time making Image fits the height | not easy as you think
we gonna need more. make a codepen 🙂
107 replies
KPCKevin Powell - Community
Created by omar_ab(@om4rAb) on 2/18/2025 in #front-end
Having hard time making Image fits the height | not easy as you think
have you tried removing height: 100vh or changing it to min-height
107 replies
KPCKevin Powell - Community
Created by thycooon on 2/17/2025 in #front-end
Why does the eventListener just works on the first occasion?
it's different in chrome
28 replies
KPCKevin Powell - Community
Created by thycooon on 2/17/2025 in #front-end
Why does the eventListener just works on the first occasion?
if an element has one
28 replies
KPCKevin Powell - Community
Created by thycooon on 2/17/2025 in #front-end
Why does the eventListener just works on the first occasion?
nope i luckily used firefox dev tools you can see event tag on elements there
28 replies
KPCKevin Powell - Community
Created by thycooon on 2/17/2025 in #front-end
Why does the eventListener just works on the first occasion?
when i clicked the body i saw the event went poof
28 replies
KPCKevin Powell - Community
Created by thycooon on 2/17/2025 in #front-end
Why does the eventListener just works on the first occasion?
i used browser dev tools
28 replies
KPCKevin Powell - Community
Created by thycooon on 2/17/2025 in #front-end
Why does the eventListener just works on the first occasion?
You mean how i figured out what is going on ?
28 replies
KPCKevin Powell - Community
Created by thycooon on 2/17/2025 in #front-end
Why does the eventListener just works on the first occasion?
that is a valid question i don't know the answer to so you gonna need to wait for someone that does 😄
28 replies
KPCKevin Powell - Community
Created by thycooon on 2/17/2025 in #front-end
Why does the eventListener just works on the first occasion?
28 replies
KPCKevin Powell - Community
Created by thycooon on 2/17/2025 in #front-end
Why does the eventListener just works on the first occasion?
use document.createElement() to make the popup and set the innerHTML for it if you don't want to do it everything one by one
28 replies
KPCKevin Powell - Community
Created by thycooon on 2/17/2025 in #front-end
Why does the eventListener just works on the first occasion?
I would use append() or appendChild() instead of changing innerHTML
28 replies
KPCKevin Powell - Community
Created by thycooon on 2/17/2025 in #front-end
Why does the eventListener just works on the first occasion?
when you change the innerHTML when adding the popup you are nuking the event that you added on the first line
28 replies
KPCKevin Powell - Community
Created by CDL on 2/17/2025 in #front-end
Grid/Flex positioning - Image Grid?
sorry for late response but maybe the flexbox used on the img tag is doing this also you should make your images responsive with max-width: 100%;
10 replies
KPCKevin Powell - Community
Created by ghoul on 2/18/2025 in #front-end
Weird anchor tag behaviour
because you use shorthand background property on hover and a default value for background-repeat there is set to repeat
2 replies
KPCKevin Powell - Community
Created by thycooon on 2/17/2025 in #front-end
Why does the eventListener just works on the first occasion?
28 replies
KPCKevin Powell - Community
Created by CDL on 2/17/2025 in #front-end
Grid/Flex positioning - Image Grid?
how about not setting it at all grid should take care of it
10 replies