Advertisement
Guest User

style.css

a guest
Nov 17th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.20 KB | None | 0 0
  1. *{
  2.     margin:0;
  3.     padding:0;
  4.     -webkit-box-sizing_border-box;
  5.     -moz-box-sizing:border-box;
  6.     box-sizing:border-box;
  7. }
  8.  
  9. body{
  10.     background: white;
  11. }
  12.  
  13. h1{
  14.     text-align:center;
  15.     font-family:Arial, "Helvetica Neue", Helvetica, sans-serif;
  16.     padding:15px;
  17. }
  18.  
  19. h2{
  20.     text-align:center;
  21.     font-family:Arial, "Helvetica Neue", Helvetica, sans-serif;
  22.     padding-bottom:10px;
  23. }
  24.  
  25. .gallery{
  26.     width:90%;
  27.     max-width:100%;
  28.     margin:0 auto;
  29.     display:-webkit-flex;
  30.     display:-moz-flex;
  31.     display:-ns-flex;
  32.     display:flex;
  33.     flex-wrap:wrap;     /*Make the flexible items wrap if necessary:*/
  34.     flex-direction:row; /*Set the direction of the flexible items inside the <div> element in reverse order:*/
  35.     padding: 0px;
  36. }
  37.  
  38. .gallery div{
  39.     flex:auto;          /*Let all the flexible items be the same length, regardless of its content:*/
  40.     -webkit-flex:auto;  /* Safari 6.1+ */
  41.     -ms-flex:auto;      /* IE 10 */
  42.     width:250px;
  43.     overflow:hidden;
  44.     margin:8px;
  45.     border:6px solid #fff;
  46.     box-shadow:0 0 3px 1px #222;
  47.     border-radius:4px;
  48. }
  49.  
  50. .gallery div:hover{
  51.     opacity:0.7;
  52.     transition:all ease-in-out 0.2s;
  53.     transform: scale(1.05, 1.05);
  54. }
  55.  
  56. img{
  57.     width:100%; /*decommentare per responsive*/
  58. /*  width:100px; */
  59.     height:auto;
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement