Advertisement
pan7nikt

css\galeria3.css

Oct 4th, 2022
787
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.14 KB | None | 0 0
  1. #container {
  2.   text-align: center;
  3.   clear: both;
  4.   height: 2160px;
  5.   width: 960px;
  6.   border-radius: 5px;
  7.   border-style: solid;
  8.   border-color: black;
  9.   border-width: 2px;
  10.   background-color: #82bede;
  11. }
  12.  
  13. #banner {
  14.   height: 12%;
  15.   width: 100%;
  16.   float: left;
  17.   background-color: #82bede;
  18. }
  19.  
  20. #banner img {
  21.   width: 100%;
  22.   height: 100%;
  23. }
  24.  
  25. #navbar {
  26.   height: 2%;
  27.   width: 100%;
  28.   float: left;
  29.   background-color: #355e70;
  30. }
  31.  
  32. /*menu*/
  33. #menu2 {
  34.   text-align: center;
  35.   margin: 50px 0 50px 0;
  36. }
  37.  
  38. .topbutton {
  39.   border: none;
  40.   background-color: #98c0cf;
  41.   margin-left: 7px;
  42.   position: relative;
  43.   top: 50%;
  44.   transform: translateY(-50%);
  45.   float: left;
  46.   width: 100px;
  47.   height: 25px;
  48. }
  49.  
  50. #menu2 ul {
  51.   margin: 0;
  52.   list-style: none;
  53.   display: inline-block;
  54.   white-space: nowrap;
  55. }
  56.  
  57. #menu2 li {
  58.   display: inline;
  59. }
  60.  
  61. #menu2 li a {
  62.   display: block;
  63.   margin-top: 6px;
  64.   height: 30px;
  65.   float: left;
  66.   color: #000;
  67.   text-decoration: none;
  68.   font: normal 14px/22px 'latomedium', arial,sans-serif;
  69.   padding: 0 0 0 12px;
  70.   background: url(../img/pro_nine_0a.gif) no-repeat;
  71. }
  72.  
  73. #menu2 li a b {
  74.   height: 100%;
  75.   float: left;
  76.   display: block;
  77.   background: url(../img/pro_nine_0.gif) right top;
  78.   padding: 0 12px 0 0;
  79. }
  80.  
  81. #menu2 li a:hover {
  82.   background: url(../img/pro_nine_1a.gif) no-repeat;
  83. }
  84.  
  85. #menu2 li a:hover b {
  86.   background: url(../img/pro_nine_1.gif) right top;
  87. }
  88.  
  89. /*galeria*/
  90. body {
  91.   min-height: 100vh;
  92.   display: grid;
  93.   place-content: start center;
  94.   background: linear-gradient(#fff, #aaa, #fff);
  95. }
  96.  
  97. .container {
  98.   display: flex;
  99.   width: 100%;
  100.   padding: 4% 2%;
  101.   box-sizing: border-box;
  102.   height: 100vh;
  103. }
  104.  
  105. .box {
  106.   flex: 1;
  107.   overflow: hidden;
  108.   transition: .5s;
  109.   margin: 0 2%;
  110.   box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
  111.   line-height: 0;
  112. }
  113.  
  114. .box > img {
  115.   width: 200%;
  116.   height: calc(100% - 10vh);
  117.   object-fit: cover;
  118.   transition: .5s;
  119. }
  120.  
  121. .box > span {
  122.   font-size: 1.8vh;
  123.   display: block;
  124.   text-align: center;
  125.   height: 10vh;
  126.   line-height: 2.6;
  127. }
  128.  
  129. .box:hover {
  130.   flex: 1 1 50%;
  131. }
  132.  
  133. .box:hover > img {
  134.   width: 100%;
  135.   height: 100%;
  136. }
  137.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement