/* General page styles - put these straight into your stylesheet */ body { margin: 0; } html { font-family: 'Helvetica neue', Arial, 'sans serif'; font-size: 10px; background-color: #ccc; } /* General styles*/ .card { margin: 0; } /* Selectors to be matched up with rulesets */ .card article img { float: right; max-height: 100% } .card footer{ background-image: linear-gradient(to bottom,rgba(0,0,0,0), rgba(0,0,0,0.1)); border-radius: 0 0 1.5em 1.5em; } .card header{ background-image: linear-gradient(to bottom,rgba(0,0,0,0.1), rgba(0,0,0,0)); border-radius: 1.5em 1.5em 0 0; } .card { width: 35em; height: 22em; margin: 5em auto; background-color: red; border: 0.2em solid black; border-radius: 1.5em;} /*styles specific to the setup of the card container*/ /* styles specific to the header and footer*/ .card header { max-height: 50px; height: 30px; padding: 10px; font-size: 20px; line-height: 5px; } .card footer { max-height: 50px; height: 30px; padding: 10px; font-size: 15px; line-height: 2px; } /*styles specific to the main business card contents*/ .card article { height:120px; background: rgba(151, 33, 33, 0.5); padding-left: 15px; color:whitesmoke ; line-height: 16px; }