Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. ###Software list with flex
  2. HTML-------------------
  3. <div>
  4. <section class="software">
  5.  
  6. <div class="software-frame">
  7. <a href="https://www.adobe.com/" style="text-decoration: none;color: #000000;">
  8. <div class="software-img">
  9. <img src="https://helpx.adobe.com/content/dam/help/mnemonics/pr_cc_app_RGB.svg">
  10. </div>
  11. <div class="software-container">
  12. <h2>Product name here </h2>
  13. <h3>Price here </h3>
  14. </div>
  15. </a>
  16. </div>
  17.  
  18. <div class="software-frame">
  19. <div class="software-img">
  20. <img src="https://helpx.adobe.com/content/dam/help/mnemonics/pr_cc_app_RGB.svg">
  21. </div>
  22. <div class="software-container">
  23. <h2>Product name here </h2>
  24. <h3>Price here </h3>
  25. </div>
  26. </div>
  27.  
  28. <div class="software-frame">
  29. <div class="software-img">
  30. <img src="https://helpx.adobe.com/content/dam/help/mnemonics/pr_cc_app_RGB.svg">
  31. </div>
  32. <div class="software-container">
  33. <h2>Product name here </h2>
  34. <h3>Price here </h3>
  35. </div>
  36. </div>
  37. </section>
  38. </div>
  39.  
  40. CSS--------------------------------
  41. .software {
  42. display: flex;
  43. flex-wrap: wrap;
  44. }
  45.  
  46. .software-frame {
  47. display: flex;
  48. flex-direction: column;
  49. padding: 1%;
  50. flex: 1 15%;
  51. background-color: #f6f6f4;
  52. }
  53.  
  54. .software-container {
  55. margin-top: auto;
  56. padding-top: 2px;
  57. }
  58.  
  59. .software-img img {
  60. max-width: 25%;
  61. }
  62.  
  63. ###Specific software page
  64. HTML-------------------------------
  65. <div class="software-info">
  66. <div>
  67. <img src="https://helpx.adobe.com/content/dam/help/mnemonics/pr_cc_app_RGB.svg" class="pic">
  68.  
  69. </div>
  70. <div class="text">
  71. <h1>Test software title </h1>
  72. <p> This is an example blurb for a software that we will sell on the website </p>
  73. <br/>
  74. <p> More descriptive paragraph here </p>
  75. <br/>
  76. <ul>
  77. <li> Selling point here </li>
  78. <li> Selling point here </li>
  79. <li> Selling point here </li>
  80. </ul>
  81. <br/>
  82. <a href="adobe.com" class="button"> Add to cart </a>
  83. </div>
  84. </div>
  85.  
  86. CSS--------------------------------
  87. .software-info {
  88. display: flex;
  89. }
  90.  
  91. .pic {
  92. padding-left: 200px;
  93. padding-top: 50px;
  94. width: 350px;
  95. }
  96.  
  97. .text {
  98. padding-top: 50px;
  99. padding-left: 15px;
  100. flex-grow: 1;
  101. }
  102.  
  103. .button {
  104. background-color: #edb700;
  105. color: white;
  106. text-decoration: none;
  107. padding: 0.4em;
  108. font-size: 20px;
  109. margin-left: 350px;
  110. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement