Adityakamat (Talk | contribs) |
|||
Line 155: | Line 155: | ||
</div> | </div> | ||
− | <h2> | + | <div class="row"> |
− | <p> | + | <div class="column"> |
+ | <div class="card"> | ||
+ | <img src="https://2017.igem.org/File:Aml_photo.jpeg" alt="Arvind" style="width:100%"> | ||
+ | <div class="container"> | ||
+ | <h2>Arvind M. Lali</h2> | ||
+ | <p class="title">Primary PI</p> | ||
+ | <p>Some text that describes me lorem ipsum ipsum lorem.</p> | ||
+ | <p>example@example.com</p> | ||
+ | <p><button class="button">Contact</button></p> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
− | <div class=" | + | <div class="column"> |
− | + | <div class="card"> | |
− | + | <img src="https://2017.igem.org/File:Aml_photo.jpeg" alt="Shalini" style="width:100%"> | |
− | + | <div class="container"> | |
+ | <h2>Shalini Deb</h2> | ||
+ | <p class="title">Secondary PI</p> | ||
+ | <p>Some text that describes me lorem ipsum ipsum lorem.</p> | ||
+ | <p>example@example.com</p> | ||
+ | <p><button class="button">Contact</button></p> | ||
+ | </div> | ||
+ | </div> | ||
</div> | </div> | ||
− | |||
+ | <div class="column"> | ||
+ | <div class="card"> | ||
+ | <img src="https://2017.igem.org/File:Aml_photo.jpeg" alt="Shamlan" style="width:100%"> | ||
+ | <div class="container"> | ||
+ | <h2>Shamlan M. S. Reshamwala</h2> | ||
+ | <p class="title">Designer</p> | ||
+ | <p>Some text that describes me lorem ipsum ipsum lorem.</p> | ||
+ | <p>example@example.com</p> | ||
+ | <p><button class="button">Contact</button></p> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | /* Three columns side by side */ | ||
+ | .column { | ||
+ | float: left; | ||
+ | width: 33.3%; | ||
+ | margin-bottom: 16px; | ||
+ | padding: 0 8px; | ||
+ | } | ||
+ | |||
+ | /* Display the columns below each other instead of side by side on small screens */ | ||
+ | @media (max-width: 650px) { | ||
+ | .column { | ||
+ | width: 100%; | ||
+ | display: block; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | /* Add some shadows to create a card effect */ | ||
+ | .card { | ||
+ | box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); | ||
+ | } | ||
+ | |||
+ | /* Some left and right padding inside the container */ | ||
+ | .container { | ||
+ | padding: 0 16px; | ||
+ | } | ||
+ | |||
+ | /* Clear floats */ | ||
+ | .container::after, .row::after { | ||
+ | content: ""; | ||
+ | clear: both; | ||
+ | display: table; | ||
+ | } | ||
+ | |||
+ | .title { | ||
+ | color: grey; | ||
+ | } | ||
+ | |||
+ | .button { | ||
+ | border: none; | ||
+ | outline: 0; | ||
+ | display: inline-block; | ||
+ | padding: 8px; | ||
+ | color: white; | ||
+ | background-color: #000; | ||
+ | text-align: center; | ||
+ | cursor: pointer; | ||
+ | width: 100%; | ||
+ | } | ||
+ | |||
+ | .button:hover { | ||
+ | background-color: #555; | ||
+ | } | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 19:41, 31 October 2017