Advertisement
towfiqi

blocks.css

Nov 25th, 2019
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. /* Circle */
  2. .midrow_block .block_img {
  3. width: 100%;
  4. height: 100%;
  5. position: relative;
  6. overflow: hidden;
  7. border-radius: 50%;
  8. width: 240px;
  9. margin: 0 auto;
  10. margin-bottom: 35px;
  11. }
  12. .midrow_block img {
  13. max-width: none;
  14. object-fit: cover;
  15. width: 100%;
  16. height: 100%;
  17. vertical-align: middle;
  18. }
  19.  
  20. /* hexagon */
  21. .hexagon {
  22. position: relative;
  23. width: 300px;
  24. height: 173.21px;
  25. background-color: #64C7CC;
  26. margin: 86.60px 0;
  27. }
  28.  
  29. .hexagon:before,
  30. .hexagon:after {
  31. content: "";
  32. position: absolute;
  33. width: 0;
  34. border-left: 150px solid transparent;
  35. border-right: 150px solid transparent;
  36. }
  37.  
  38. .hexagon:before {
  39. bottom: 100%;
  40. border-bottom: 86.60px solid #64C7CC;
  41. }
  42.  
  43. .hexagon:after {
  44. top: 100%;
  45. width: 0;
  46. border-top: 86.60px solid #64C7CC;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement