Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

95
Views
css link appear only while hovering the image

i want to make the f1 link appearing on image only on hovering the image. i tried this but this is not working , link is not appearing . can someone explain the problem and type a working code?

<div class="caine1">
      <img src="1.png" width="400" height="250"></img>
      <a href="#" id="f1">Female</a>
       </div>

   

    #f1 {
    position:absolute;
    display: none;
    z-index: 200;
}


.caine1 img:hover #f1 {
    display: inline-block;
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You're missing +.

#f1 {
  position: absolute;
  display: none;
  z-index: 200;
}

/* You missed a + here */
.caine1 img:hover + #f1 {
  display: inline-block;
}
<div class="caine1">
  <img src="1.png" width="400" height="250" /> <!--Also, images don't have closing tags - they're self closing like <br/>-->
  <a href="#" id="f1">Female</a>
</div>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!