Abc
KPCKevin Powell - Community
•Created by Abc on 12/9/2024 in #front-end
How to avoid duplicate if checks when overriding a method in JavaScript?
I think this is the best solution. But the if-check is not needed in the child class.
36 replies
KPCKevin Powell - Community
•Created by Abc on 9/7/2024 in #front-end
Issue with Thin Gray Border Appearing on Button Hover
I found the reason. The css property transform: translate ... was the reason.
3 replies
KPCKevin Powell - Community
•Created by Abc on 9/6/2024 in #front-end
How to Make Font Size,Margin,Line-Height and Letter-Spacing Responsive for <p> and <h1-h6> Elements?
At least i try to be one
30 replies
KPCKevin Powell - Community
•Created by Abc on 9/4/2024 in #front-end
Add a Scrollbar to a Container When Content Exceeds 100% Height Without Setting a Fixed Height?
Thank you. I've heard first time of it.
9 replies
KPCKevin Powell - Community
•Created by Abc on 9/4/2024 in #front-end
Add a Scrollbar to a Container When Content Exceeds 100% Height Without Setting a Fixed Height?
Thank you so so much 🙏 🙏 🙏 🙏 🙏 🙏 🙏
9 replies
KPCKevin Powell - Community
•Created by Abc on 8/13/2024 in #front-end
How to Vertically Center Logo and Icons with Respect to the First Row in Footer?
Thank you very much 🙏
5 replies
KPCKevin Powell - Community
•Created by Abc on 8/13/2024 in #front-end
How to Vertically Center Logo and Icons with Respect to the First Row in Footer?
Thank you very much
5 replies
KPCKevin Powell - Community
•Created by Abc on 8/12/2024 in #front-end
Why is the autofill text color not white in my form input?
Thank you both very much.
6 replies
KPCKevin Powell - Community
•Created by Abc on 8/12/2024 in #front-end
Why is the autofill text color not white in my form input?
Do you know where to find these JavaScript Hacks to change the color?
6 replies
KPCKevin Powell - Community
•Created by Abc on 8/8/2024 in #front-end
How to vertically center a horizontal line to the first line of a multiline paragraph using CSS?
What do you mean? That I change the y position for every screen width I have?
9 replies
KPCKevin Powell - Community
•Created by Abc on 8/8/2024 in #front-end
How to vertically center a horizontal line to the first line of a multiline paragraph using CSS?
I use SASS variables for font-size and line-height. This always changes depending on the media query.
$line-height-p-small: rem(20);
$line-height-p-medium: rem(24);
$line-height-p-large: rem(28);
$line-height-p-extra-large: rem(32);
$font-size-p-small: rem(14);
$font-size-p-medium: rem(16);
$font-size-p-large: rem(18);
$font-size-p-extra-large: rem(20);
@include small-screen {
p {
font-size: $font-size-p-small;
line-height: $line-height-p-small;
}
@include medium-screen {
p {
font-size: $font-size-p-medium;
line-height: $line-height-p-medium;
}
}
9 replies
KPCKevin Powell - Community
•Created by Abc on 8/8/2024 in #front-end
How to vertically center a horizontal line to the first line of a multiline paragraph using CSS?
The problem is that the font size and line-height changes depending on the screen width. Can you perhaps think of a better solution?
9 replies
KPCKevin Powell - Community
•Created by Abc on 7/31/2024 in #front-end
How can I ensure that the container is at least as wide as the longest text?
Its for my portfolio website.
7 replies
KPCKevin Powell - Community
•Created by Abc on 7/31/2024 in #front-end
How can I ensure that the container is at least as wide as the longest text?
There are only so many ways you can style a Select. That's why it's gone.
7 replies
KPCKevin Powell - Community
•Created by Abc on 7/31/2024 in #front-end
border-radius not applying to container element
Here is a update: https://jsfiddle.net/6w3a9sv0/1/
7 replies
KPCKevin Powell - Community
•Created by Abc on 7/29/2024 in #front-end
How to Make Full-Width Items in a Container with Padding in CSS?
Not if I use bootstrap: <div class="p-3">Padding on all sides</div>
9 replies
KPCKevin Powell - Community
•Created by Abc on 7/29/2024 in #front-end
How to Make Full-Width Items in a Container with Padding in CSS?
If i move the padding down to the items and I want to change the size of padding maybe after a couple months, then I have to do it on all items. Is there not a better solution?
9 replies