Tok124 (CSS Nerd)
Tok124 (CSS Nerd)
KPCKevin Powell - Community
Created by Sevrin on 12/8/2024 in #front-end
Question about a bug in my website
And did you have any errors?
113 replies
KPCKevin Powell - Community
Created by Sevrin on 12/8/2024 in #front-end
Question about a bug in my website
Did you check your console for errors? The best you can do is to first check for errors, if you have errors, post the error here in chat and we know immediately why it's not working. otherwise if there is no error then you can upload your code to codepen and share link here so we can try it and see why it does not work
113 replies
KPCKevin Powell - Community
Created by Sevrin on 12/8/2024 in #front-end
Question about a bug in my website
check your console for errors
113 replies
KPCKevin Powell - Community
Created by Sevrin on 12/8/2024 in #front-end
Question about a bug in my website
You should write it like this
let keyCode = document.getElementById("keyPass").innerHTML;
let shreyImage = document.getElementById("linky").innerHTML;

function checkIfCorrect() {
window.alert(keyCode);
if (keyCode == 1049) {
const element = document.getElementById("linky");
element.innerHTML = "Correct!";
element.href = "2Untitled.jpg";
} else {
const element = document.getElementById("linky");
element.innerHTML = "Wrong, Try again";
}
}
let keyCode = document.getElementById("keyPass").innerHTML;
let shreyImage = document.getElementById("linky").innerHTML;

function checkIfCorrect() {
window.alert(keyCode);
if (keyCode == 1049) {
const element = document.getElementById("linky");
element.innerHTML = "Correct!";
element.href = "2Untitled.jpg";
} else {
const element = document.getElementById("linky");
element.innerHTML = "Wrong, Try again";
}
}
Now it's much easier to see
113 replies
KPCKevin Powell - Community
Created by Sevrin on 12/8/2024 in #front-end
Question about a bug in my website
Yeah i see
113 replies
KPCKevin Powell - Community
Created by Sevrin on 12/8/2024 in #front-end
Question about a bug in my website
from else
113 replies
KPCKevin Powell - Community
Created by Sevrin on 12/8/2024 in #front-end
Question about a bug in my website
Or no actually, i think it is missing hmm..
113 replies
KPCKevin Powell - Community
Created by Sevrin on 12/8/2024 in #front-end
Question about a bug in my website
it's indentation problem
113 replies
KPCKevin Powell - Community
Created by Sevrin on 12/8/2024 in #front-end
Question about a bug in my website
joch is right
113 replies
KPCKevin Powell - Community
Created by Sevrin on 12/8/2024 in #front-end
Question about a bug in my website
Aah
113 replies
KPCKevin Powell - Community
Created by Sevrin on 12/8/2024 in #front-end
Question about a bug in my website
No description
113 replies
KPCKevin Powell - Community
Created by Sevrin on 12/8/2024 in #front-end
Question about a bug in my website
Seems like you're also missing a "}"
113 replies
KPCKevin Powell - Community
Created by scylka#001 on 12/6/2024 in #front-end
Help needed to code a specific part of a design
Check the link i posted, you have multiple examples there
9 replies
KPCKevin Powell - Community
Created by scylka#001 on 12/6/2024 in #front-end
Help needed to code a specific part of a design
9 replies
KPCKevin Powell - Community
Created by Micah on 12/6/2024 in #front-end
text not showing with mix-blend-mode
@Micah You can put the mix-blend-mode on the pseudo element instead and use "screen" or "lighten" as the blend mode, then you can use backdrop-filter:invert(1); to get what you want https://codepen.io/tok124/pen/MYgKqKr
13 replies
KPCKevin Powell - Community
Created by Micah on 12/6/2024 in #front-end
text not showing with mix-blend-mode
thats just how difference work in blend mode, if you make text white, it will be black
13 replies
KPCKevin Powell - Community
Created by Micah on 12/6/2024 in #front-end
text not showing with mix-blend-mode
change the text color to white
13 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 12/5/2024 in #front-end
how to achieve this shape on the card ?
@i_lost_to_loba_krey Here you have something similar https://codepen.io/tok124/pen/xbKZEBx You have to play around with values and stuff to get it exactly how you want it... But this should give you a good start at least
6 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 12/4/2024 in #front-end
Do I need to use absolute or relative positioning for the image ?Or how do I approach this layout?
No description
10 replies
KPCKevin Powell - Community
Created by henry on 12/2/2024 in #front-end
Custom Kuromi Shaped Buttons
I personally prefer using masks in css.
9 replies