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

243
Views
¿Cómo puedo hacer que el fondo sea medio visible cuando presiono el botón?

¿Cómo puedo hacer que la mitad de la pantalla esté parcialmente negra cuando hago clic en el botón, como en la imagen?

móvil

Hice la navegación móvil así y especifiqué que el color de fondo debería ser blanco:

 .nav-links-row-mobile{ display: none; top:0; position: absolute; left:0; list-style: none; background-color: #ffffff; margin: 0; padding: 50px; height: 100%; }
 <div class="nav-links "> <ul class="nav-links-row-mobile"> <div class="nav-logo nav-logo-mobile"> <a href="index.html"> <h1>Brit</h1><span class="grey">lex</span> </a> </div> <li><a href="#!">Home</a></li> <li><a href="#!">Skills</a></li> <li><a href="#!">About Us</a></li> <li><a href="#!">Pricing</a></li> <li><a href="#!">Contacts</a></li> </ul> </div>

Pero, ¿cómo puedo hacer que la segunda mitad de la pantalla sea medio negra o parcialmente visible?

¡Gracias de antemano!

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Intente darle una box-shadow con cero blur , una spread muy grande y use rgba() para hacer que el color de la sombra sea transparente.

 body { width: 100%; height: 100%; background: url(https://www.fillmurray.com/800/600) no-repeat center center fixed; background-size: cover; } .nav-links-row-mobile{ top:0; position: absolute; left:0; list-style: none; background: #ffffff; margin: 0; padding: 50px; height: 100%; box-shadow: 0 0 0px 5000px rgba(0,0,0,0.5); }
 <body> <div class="nav-links"> <ul class="nav-links-row-mobile"> <div class="nav-logo nav-logo-mobile"> <a href="index.html"> <h1>Brit</h1><span class="grey">lex</span> </a> </div> <li><a href="#!">Home</a></li> <li><a href="#!">Skills</a></li> <li><a href="#!">About Us</a></li> <li><a href="#!">Pricing</a></li> <li><a href="#!">Contacts</a></li> </ul> </div> </body>

about 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!