Day 294
A simple button from the class. Joe used a button element, but I built my button from parts...
#CodingPhase #TheCodingWay #365CodingPhaseChallenge
**********
HTML:
<div class="parent">
<div class="child">Button</div>
</div>
CSS:
.parent {
margin: 25px 25px;
width: 200px;
height: 50px;
background: lightgrey;
border: 1px solid black;
border-radius: 10px;
cursor: pointer;
transition: background 1s ease-in-out;
&:hover {
background: red;
}
.child {
color: darkgreen;
text-align: center;
padding: 8px 0;
font-size: 2rem;
font-weight: 600;
}
}
#CodingPhase #TheCodingWay #365CodingPhaseChallenge
**********
HTML:
<div class="parent">
<div class="child">Button</div>
</div>
CSS:
.parent {
margin: 25px 25px;
width: 200px;
height: 50px;
background: lightgrey;
border: 1px solid black;
border-radius: 10px;
cursor: pointer;
transition: background 1s ease-in-out;
&:hover {
background: red;
}
.child {
color: darkgreen;
text-align: center;
padding: 8px 0;
font-size: 2rem;
font-weight: 600;
}
}
Comments
Post a Comment