Advertisement
Guest User

style.css

a guest
Nov 20th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.05 KB | None | 0 0
  1. *{
  2.     box-sizing:border-box;
  3. }
  4.  
  5. h1{
  6.     text-align:center;
  7. }
  8.  
  9. h2{
  10.     text-align:center;
  11. }
  12.  
  13. .gallery{
  14.     vertical-align: top;
  15. }
  16. /* Clear floats after the columns */
  17. .gallery:after {
  18.     content: "";
  19.     display: table;
  20.     clear: both;
  21. }
  22.  
  23. .image{
  24.     width: 15%;
  25.     padding: 1px;
  26.     display:inline-block;
  27. }
  28.  
  29. .image:hover{
  30.     transition:all ease-in-out 0.2s;
  31.     transform: scale(1.05, 1.05);
  32. }
  33.  
  34. .description{
  35.     text-align:left;
  36.     background:white;
  37.     font-size:0.65em;
  38.     padding:0;
  39.     height:min-content;
  40.     word-break: break-all;
  41. }
  42.  
  43. @media only screen and (max-width:1400px){
  44.     .image{
  45.         width:19.5%;
  46.     }
  47. }
  48.  
  49. @media only screen and (max-width:1300px){
  50.     .image{
  51.         width:19.5%;
  52.     }
  53. }
  54.  
  55. @media only screen and (max-width:900px){
  56.     .image{
  57.         width:24%;
  58.     }
  59. }
  60.  
  61. @media only screen and (max-width:800px){
  62.     .image{
  63.         width:24%;
  64.     }
  65. }
  66.  
  67. @media only screen and (max-width:700px){
  68.     .image{
  69.         width:32%;
  70.     }
  71. }
  72.  
  73. @media only screen and (max-width:500px){
  74.     .image{
  75.         width:48%;
  76.     }
  77. }
  78.  
  79. @media only screen and (max-width:380px){
  80.     .image{
  81.         width:100%;
  82.     }
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement