@phut-tran
Posted
Hello @tgusterson, your solution look great π
About the error, I see you have a wrong path in CSS file. The /
at the beginning of your file path indicates it begin at the root directory. Open browser console you will see the error URL.
Here your code:
.error-icon {
content: url("/images/icon-error.svg"); // This is our problem
z-index: 1;
position: absolute;
top: 25%;
right: 70px;
cursor: default;
}
My recommended: url("../images/icon-error.svg")
Also, I see you use two difference img
tag for the background image. If the image just for decoration purpose. You should use CSS background.
Have a glance on my code
Hopefully it useful for you.
@phut-tran
Posted
You're welcome @tgusterson
@tgusterson
Posted
@tdphut Thank you so much for helping me with this and sharing your code, I really appreciate it.