Day 331

My first entry into the responsive CSS Grid realm...
#CodingPhase #TheCodingWay #365CodingPhaseChallenge

**********

body {
  font-size: 15px;
}
button {
  background: #ffc600;
  border: 0;
  padding: 10px 20px;
}
img {
  max-width: 100%;
}

/* .wrapper */
.wrapper {
  display: grid;
  grid-gap: 20px;
}
.top {
  display: grid;
  grid-gap: 20px;
  grid-template-areas:
    "hero hero cta1"
    "hero hero cta2"
}
.hero {
  grid-area: hero;
  min-height: 400px;
  background: white url(images/taco.jpg);
  background-size: cover;
  background-position: bottom right;
  padding: 50px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}
.hero > * {
  background: var(--yellow);
  padding: 5px;
}

Comments

Popular posts from this blog

Day 1

Day 365 + 1

Day 365 + 2