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

251
Views
¿Cómo puedo hacer un degradado css como este y pasar el mouse por encima del borde?

Necesito ayuda para replicar tres botones como estos, lo que más me preocupa es cómo hacer que el degradado se vea exactamente como es. También tengo curiosidad sobre cómo poner un borde blanco al pasar el mouse o hacer clic en el botón

Probé este código para el degradado, pero todo lo que obtengo es una línea blanca gruesa en el medio. Cualquier ayuda será apreciada

 #blue{ background: linear-gradient(#00a1d6, white , #00a1d6); } #yellow{ background: linear-gradient(#df8700, white , #df8700); } #red{ background: linear-gradient(#950f16, white , #950f16); }

Gradiente de tres cuadrados

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

$(".square"/*button class or id*/).hover(function(){ $(this).css("border","2px solid #fff;") },function(){ $(this).css("border","none") });
over 4 years ago · Santiago Trujillo Report

0

Dependiendo de cómo se construya su DOM, es posible que desee evitar el uso de bordes, ya que a veces el grosor del borde cambiará los elementos en la pantalla. Intenta usar box-shadow.

 #blue:hover, #yellow:hover, #red:hover, #blue:active, #yellow:active, #red:active { box-shadow: inset 0 0 1px 2px white; }

O dale a cada botón una clase para simplificar el css

 .button-class:hover, .button-class:active { box-shadow: inset 0 0 1px 2px white; }

over 4 years ago · Santiago Trujillo Report

0

#color { background: -webkit-linear-gradient(red, yellow); /* For Safari 5.1 to 6.0 */ background: -o-linear-gradient(red, yellow); /* For Opera 11.1 to 12.0 */ background: -moz-linear-gradient(red, yellow); /* For Firefox 3.6 to 15 */ background: linear-gradient(red, yellow); /* Standard syntax */ }

Probablemente quieras algo como esto.

over 4 years ago · Santiago Trujillo 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!