Design comparison
Solution retrospective
i have some questions :
- do you know how to make color gradient on border easily, does css provide properties for it?
- how make easily message alert at input?
thank you
Community feedback
- @MasonBoomPosted almost 2 years ago
Hi Muhammad!
I am not sure if you're asking how to make a color gradient border or a color gradient in general, but I found an article for gradient borders here: https://css-tricks.com/gradient-borders-in-css/
To make a css gradient background in general, you could do something like
background: linear-gradient(135deg, rgba(33,9,47,1) 0%, rgba(71,162,255,1) 100%);
I use this site to generate css gradients: https://cssgradient.io/
For your second question, you could write an if statement that checks if all of your inputs have values
for example:
if(inputName === '') { alert("Please add name") }
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord