Hi Chrismills
Could you give me feedback on fundamental CSS test,please?
here is CSS code
/* General styles - put these straight into your stylesheet */
body {
margin: 0;
}
html {
font-family: ‘Helvetica neue’, Arial, ‘sans serif’;
font-size: 10px;
background-color: #ccc;
}
/* Selectors to be matched up with rulesets */
.card article img {
max-height: 100%;
float: right;
}
.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;
}
/* specify card size, color, border*/
.card {
width: 35em;
height: 22em;
margin: 5em auto;
background-color: red;
border: 0.2em solid black;
border-radius: 1.5em;
}
/* info about card holder*/
.card article {
height: 12em;
background-color: rgba(0,0,0,0.2);
color: antiquewhite;
padding-left: 1em;
}
/* card holder name*/
.card h2 {
font-size: 2em;
line-height: 25px;
}
/* card holder footer info*/
.card footer p {
font-size: 1.5em;
line-height: 5px;
}
.card h2, p {
margin: 0 auto;
}
.card p {
padding-top: 10px ;
}
.card footer, header {
height: 5em;
padding: 1em;
box-sizing: border-box;
}