Advertisement
cat

html/css help

cat
Oct 22nd, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. //html
  2.  
  3. <div class="productcontainer">
  4. <div class="product">
  5. <h2>title1</h2>
  6. <div class="prodDesc">
  7. <p>desc 1
  8. </p>
  9. </div>
  10. <div class="prodBuy" data-shoppy-product="xxx">
  11. <a>BUY</a>
  12. </div>
  13. </div>
  14.  
  15. <div class="product">
  16. <h2>title2</h2>
  17. <div class="prodDesc">
  18. <p>desc2
  19. </p>
  20. </div>
  21.  
  22. <div class="prodBuy" data-shoppy-product="xxx">
  23. <a>DOWNLOAD</a>
  24. </div>
  25. <div class="prodBuy" data-shoppy-product="xxx">
  26. <a>BUY</a>
  27. </div>
  28. </div>
  29. </div>
  30. //css
  31. .productcontainer {
  32. margin: auto;
  33. width: 80%;
  34. border: 1px red solid;
  35. }
  36.  
  37. .product {
  38. background-color: #2e2e2e;
  39. border: 1px #ca3e47 solid;
  40. margin: auto;
  41. transition: 0.3s;
  42. width: 300px;
  43. height: 400px;
  44. display: inline-block;
  45. margin: 20px;
  46. color: #6d6d6d;
  47. }
  48.  
  49. .product:hover {
  50. box-shadow: 0 0 64px 0 rgba(255, 0, 0, 0.2);
  51. background-color: #252525;
  52. }
  53.  
  54. .prodBuy {
  55. border: 1px #5a5a5a solid;
  56. margin: 9px;
  57. width: 280px;
  58. height: 40px;
  59. bottom: 0;
  60. right: 0;
  61. transition: 0.3s;
  62. cursor: pointer;
  63. }
  64.  
  65. .prodBuy a {
  66. color: #ca3e47;
  67. display: block;
  68. margin-top: 11px;
  69. }
  70.  
  71. .prodBuy:hover {
  72. border: 1px #3eca45 solid;
  73. }
  74.  
  75. .prodDesc {
  76. width: 270px;
  77. border: 1px #ca3e47;
  78. margin: 14px;
  79. text-align: justify;
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement