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

302
Views
¿Cómo mover un objeto con @media en Css?

Estoy tratando de mover un objeto con @media en css.
Estoy tratando de hacer una ventana emergente en css con una flecha y estoy tratando de que responda.
La ventana emergente se activa cuando se hace clic en el "CV".
Mi objetivo es hacer que la ventana emergente responda. Para que en la versión móvil se mueva la flecha.

Aquí está mi código:

 <!-- entire code https://codepen.io/Yung_n-d/pen/mdwQGqX --> <div class="popup" onclick="myFunction()"><p>CV</p> <span class="popuptext" id="myPopup"><a target="_blank" id="cv" href="img/CV.pdf">View </a><a id="cv" download="img/CV.pdf" href="">Download </a><i class="fa fa-remove"></i></span> </div>
 /* The actual popup */ .popup .popuptext { visibility: hidden; width: 160px; background-color: #555; color: #fff; text-align: center; border-radius: 6px; padding: 8px 0; position: absolute; z-index: 1; bottom: 125%; left: 50%; margin-left: -310px; } @media only screen and (max-width:600px){ .popup .popuptext{ margin-left: -170px; } .popup .popuptext::after { content: ""; position: absolute; top: 100%; left: 10%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #555 transparent transparent transparent; } } /* Popup arrow */ .popup .popuptext::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #555 transparent transparent transparent; } /* Toggle this class - hide and show the popup */ .popup .show { visibility: visible; -webkit-animation: fadeIn 1s; animation: fadeIn 1s; } /* Add animation (fade in the popup) */ @-webkit-keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} } @keyframes fadeIn { from {opacity: 0;} to {opacity:1 ;} } #cv{ text-decoration: none; color:white; font-weight: bold;
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Problema: .popup .popuptext::after en la línea 326 fue anulado por la línea 339.

Solución: intente mover ese bloque @media en la línea 326 a la línea 349 y luego ajuste su código nuevamente para que coincida con su objetivo.

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!