Advertisement
bebo231312312321

Untitled

Jan 27th, 2024
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.47 KB | None | 0 0
  1. .viewport {
  2.     position: relative;
  3.     background-image: radial-gradient(
  4.         farthest-corner circle at 50% 50% in oklch,
  5.         oklch(80% .3 34) 0%, oklch(90% .3 200) 100%);
  6.     height: 100vh;
  7. }
  8.  
  9. .card {
  10.     max-width: 300px;
  11.     max-height: 300px;
  12.     position: absolute;
  13.     top: 0;
  14.     left: 50%;
  15.     rigth: 0;
  16.      bottom: 0;
  17.     transform: translate(-25%);
  18.   margin: auto;
  19. }
  20.  
  21. img {
  22.     display: block;
  23.     width: 100%;
  24.     height: 100%;
  25.  
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement