@MikDra1
Posted
To change the border color of an input element and display a <p> element when the form button is hovered using only CSS, you can use sibling combinators and the :hover pseudo-class.
/* Initially hide the <p> element */
p {
display: none;
}
/* Change the border color of the input when the button is hovered */
button:hover + input {
border-color: red;
}
/* Display the <p> element when the button is hovered */
button:hover + input + p {
display: block;
}
Hope this comment will be helpful 💗
Good job and keep going 😁😊😉
@Vyshin77
Posted
alright will try your suggestion @MikDra1
@Vyshin77
Posted
I did as you suggested but unfortunately it didn't work @MikDra1