Guest User

Untitled

a guest
Apr 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. <div class="contador parallax">
  2. <div class="contenedor">
  3. <ul class="resumen-evento clearfix">
  4. <li><p class="numero">6</p> Invitados</li>
  5. <li><p class="numero">15</p> Talleres</li>
  6. <li><p class="numero">3</p> Días</li>
  7. <li><p class="numero">9</p> Conferencias</li>
  8. </ul>
  9. </div>
  10. </div>
  11.  
  12.  
  13.  
  14. .parallax::before {
  15. width: 100%;
  16. height: 100%;
  17. position: absolute;
  18. top: 0;
  19. left: 0;
  20. background-repeat: no-repeat;
  21. background-size: cover;
  22. background-position: center center;
  23. background-attachment: fixed;
  24. }
  25.  
  26.  
  27. div.contador {
  28. position: relative;
  29. height: auto;
  30. }
  31. div.contador::before {
  32. background-image: url(../img/bg-resumen.jpg);
  33. content: '';/*Siempre que utilizas los before y after hay que ponerle un content*/
  34. }
  35.  
  36. ul.resumen-evento {
  37. position: relative;/*Para resetear porque ya tenemos uno en absolute*/
  38. padding: 120px 0;
  39. }
  40.  
  41. ul.resumen-evento li {/*Recuerda que esto es mobile first*/
  42. width: 50%;
  43. float: left;
  44. text-align: center;
  45. color: #ffffff;
  46. text-transform: uppercase;
  47. font-size: 24px;
  48. }
  49.  
  50. @media only screen and (min-width: 768px) {
  51. ul.resumen-evento li {
  52. width: 25%;
  53. }
  54. div.contador::before {
  55. background-image: url(../img/bg-resumen.jpg);
  56. content: '';/*Siempre que utilizas los before y after hay que ponerle un content*/
  57. }
  58. }
  59.  
  60.  
  61. p.numero {
  62. color: #fe4918;
  63. font-size: 4em;
  64. display: block;
  65. margin: 0 0 10px 0;
  66. }
Add Comment
Please, Sign In to add comment