Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/09/2012, 18:00
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Dos tipos de sombras en el mismo div

vas a tener que recurrir a dos capas

Código HTML:
Ver original
  1. <!DOCTYPE html>
  2. <style type="text/css">
  3. div.uno
  4. {
  5. width:300px;
  6. height:100px;
  7. background-color:yellow;
  8. box-shadow: 10px 10px 5px red;
  9. }
  10. div.dos
  11. {
  12. width:100%;
  13. height:100%;
  14. background-color:transparent;
  15. box-shadow: 5px 5px 5px red inset;
  16. }
  17. </head>
  18.  
  19. <div class="uno">
  20. <div class="dos">
  21. </div>
  22. </div>
  23.  
  24. </body>
  25. </html>

o quizás lo puedas solucionar con un borde

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.  
  7. <style type="text/css">
  8. /*<![CDATA[*/
  9.  
  10. div.topbar {
  11.    height: 100px;
  12.    width: 100px;
  13.    background: rgba(63, 63, 63, 0.82);
  14.    border-left: inset 5px black;
  15.    border-top: inset 5px black;
  16. box-shadow:10px 10px black;
  17.  
  18.  
  19. /*]]>*/
  20.  
  21. </head>
  22.  
  23. <div class="topbar">
  24. xxx
  25. </div>
  26. </body>
  27. </html>

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.