Suggon
Suggon
KPCKevin Powell - Community
Created by Suggon on 6/30/2024 in #front-end
`<br>` vs. `white-space`
bump
3 replies
KPCKevin Powell - Community
Created by Suggon on 6/27/2024 in #front-end
Issue with JQuery event handler
I tried following your suggestions and amidst of it, coincidentally figured out a different way to get the issue solved 😅 So all that had to be done was to pass the active tab between clicked items, and now the result is looking satisfactory enough without adding further event handlers and checks (also updated in the codepen above)
// retain highlight on clicked tab by delegating the active tab to it
$tabNavListItems.on('click', function() {
$(currentActive).removeAttr('class');
currentActive = this;
setProps(this, $tabNavList);
$(this).addClass('active-tab');
});
// retain highlight on clicked tab by delegating the active tab to it
$tabNavListItems.on('click', function() {
$(currentActive).removeAttr('class');
currentActive = this;
setProps(this, $tabNavList);
$(this).addClass('active-tab');
});
Nevertheless, thank you very much for the tips, they'll surely be of help in the future 👍
4 replies
KPCKevin Powell - Community
Created by Suggon on 6/27/2024 in #front-end
Issue with JQuery event handler
Thanks, I'll try getting something out of it!
4 replies
KPCKevin Powell - Community
Created by Suggon on 6/12/2024 in #front-end
Centering a div
update: just realized all divs already take full width regardless of size, because of inset 🤦 with that out of the way, yes it's the perfect solution 👍
6 replies
KPCKevin Powell - Community
Created by Suggon on 6/12/2024 in #front-end
Centering a div
thank you!
6 replies
KPCKevin Powell - Community
Created by Suggon on 6/12/2024 in #front-end
Centering a div
although it has a tiny issue where smaller divs always take container's full with, fits my usecase regardless
6 replies
KPCKevin Powell - Community
Created by Suggon on 6/12/2024 in #front-end
Centering a div
ooh that's a nice solution!
6 replies
KPCKevin Powell - Community
Created by Suggon on 12/21/2023 in #front-end
Animating `aspect-ratio` property
and i'm still not clear on why it isn't possible, given the image's width and height attributes make the browser UA-style define an extrinsic aspect-ratio 🤔
9 replies
KPCKevin Powell - Community
Created by Suggon on 12/21/2023 in #front-end
Animating `aspect-ratio` property
thing is, the ratio of the image in left can vary (specifically in horizontal axis) so any value that doesn't match the original resolution makes an undesirable upscale or downscale.
9 replies
KPCKevin Powell - Community
Created by Suggon on 12/21/2023 in #front-end
Animating `aspect-ratio` property
yeah mb, accidentally deleted the post and had to begin writing everything from scratch xD
9 replies
KPCKevin Powell - Community
Created by Suggon on 12/21/2023 in #front-end
Animating `aspect-ratio` property
No description
9 replies