+ 1
Why my paragraph is not invisible, this code is correct when I run it separately but above the image it's not working, Why???
I want to invisible 'Click here' by changing it's opacity, but it's not working đ https://code.sololearn.com/Wy80JklvzBSy/?ref=app
9 Respostas
+ 4
You have used positon property absolute in <p> teg but not defined the parent container to relative you want to use in your case it is <img> so you should make the <img> position:relative
in simlple words just add in css .img{position:relative
}
+ 2
There's no paragraph (<p>) in the code, albeit there's a <div>. And I can see the <div> before and after the <img> loads. What paragraph?
+ 2
You are great bro... đđđđđđ Thanks a lot for your help... It's working properly.... I'm so happy đ now
+ 1
Actually I was thinking that I put <p> tag đ
... But 1 thing is very confusing if this property works on <p> tag then why it's not working with <div> đ€
+ 1
What property works with <p> but not with <div>? you were referring to CSS property here right?
+ 1
Actually it's not working with both đYou an watch my code... and I'm talking about :hover and opacity
+ 1
Your problem isn't solved, please, don't mark my response, it wasn't the solution. Wait for someone who actually can help you solve it, and mark their answer instead đ
+ 1
So after you click here you want it to vanish completely with out returning?
+ 1
welcome