Advertisement
Mokiienko

css.homework_4

Feb 8th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. html, body {
  2. margin: 0;
  3. padding: 0;
  4. min-height: 100%;
  5. height: 100%;
  6. font-size: 14px;
  7. font-family: Arial;
  8. }
  9.  
  10. div {
  11. box-sizing: border-box;
  12. }
  13.  
  14. .main {
  15. width: 98%;
  16. padding: 20px;
  17. margin: 10px auto;
  18. }
  19.  
  20. .clearfix::after {
  21. content: ' ';
  22. display: block;
  23. clear: both;
  24. }
  25.  
  26. .product {
  27. position: relative;
  28. width: 239px;
  29. float: left;
  30. border: 1px solid grey;
  31. }
  32.  
  33.  
  34. .img_product {
  35. width: 195px;
  36. height: 150px;
  37. margin: 30px 30px;
  38. object-fit: contain;
  39. }
  40.  
  41. .heart_btn {
  42. position: absolute;
  43. top: 10px;
  44. right: 10px;
  45. padding: 3px;
  46. background: white;
  47. border: 0;
  48. border-radius: 5px;
  49. }
  50.  
  51. .heart_btn img {
  52. width: 20px;
  53. }
  54.  
  55. .libra_btn {
  56. position: absolute;
  57. top: 40px;
  58. right: 10px;
  59. padding: 3px;
  60. background: white;
  61. border: 0;
  62. border-radius: 5px;
  63. }
  64.  
  65. .libra_btn img {
  66. width: 20px;
  67. }
  68.  
  69. .shopping-cart_btn {
  70. float: right;
  71. padding: 3px 25px 3px 3px;
  72. background: white;
  73. border: 0;
  74. border-radius: 5px;
  75. }
  76.  
  77. .shopping-cart_btn img {
  78. width: 20px;
  79. }
  80.  
  81. p {
  82. margin: 0 20px 20px 20px;
  83. }
  84.  
  85. .price {
  86. font-size: 24px;
  87. }
  88.  
  89. .green {
  90. color: seagreen;
  91. font-size: 10px;
  92. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement