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
Post a Comment