html - How can I make this so it becomes visible when hovered over -


i'm trying make paragraph becomes visible when hover on it. in html have paragraph inside body, , i've tried in div in body.my code in css just

p{     position:absolute;     visibility:hidden; }  p:hover p{     visibility:visible; } 

first of cannot put <p> elements inside <p>, might problem. can use <div> or of these container.

<div><p>paragraph</p></div>  div p {} div:hover p {} 

Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -