Product Landing Page - Build a Product Landing Page

Tell us what’s happening:

My code for this project is not passing due to user story #14 & #15. I’ve checked and checked my code, run it through a CSS validator and still can’t find any issues. Can anyone point me in the right direction please?

Your code so far

@media only screen and  (max-width: 960px) {
  
  #subscribe__img{
    display: none;
  }

  #subscribe {
    min-width: 500px;
    height: 500px;
  }

  main {
    margin-top: 100px;
  }

  #subscribe__form {
    width: 100%;
  }

  #sub__promo {
    width: 100%;
  }

  #regimen {
    width: 80%; 
  }

  #submit-action {
    width: 80%;
    display: flex;justify-content: flex-end;
  }
  .feat-prod .img {
    display: none; 
  }

   #shop {
    margin: 0 auto;
  }
  
  #guides {
    flex-direction: column;
    align-items: center;
  }

  .guide {
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
  }
  .footer {
    width: 100vw!important;
  }



* {
  box-sizing: border-box;
  scroll-behavior:smooth;
}
}

@media (min-width: 1468px) {

  .content {
    width: calc(100% - 500px);
  }

  #shop {
    margin: 0 auto;
  }

}

@media (max-width: 610px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  #nav-bar {
    background: rgba(225, 222, 217, 0.8);
    width: 100%;
  }

  main {
    margin-top: 150px;
  }

  nav ul {
    justify-content: center;
  }
}
#main {
  font-family: Raleway, sans-serif;
  font-size: 16px;
  letter-spacing: 0.025em;
  line-height: 20px;
 
}

#header-img {
  width: 180px;
  
}


ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  
}

li {
  float: right;
}

a {
  display: block;
  padding: 8px; 
}

main {
  padding-top: 100px;
}

.nav-link {
  color: white;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: black;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
}

.nav-bar {
  background-color: black;
  margin: 0px;
  width: 100%;
  position: fixed;
  border-bottom: 3px solid black;
  padding-top: 0;
}
#subscribe {
  margin: auto;
  display: flex;
  justify-content: center;
}

#subscribe__img, #subscribe__form {
  width: 50%;
  margin-top: 200px;
}

#subscribe__img img {
  width: 100%;
  height: auto;
}

nav ul li:not(:last-of-type) {
  margin-right: 40px;
}

#subscribe {
  width: 400px;
  margin: 0 auto;
  text-align: center;
  margin-top: 50px;
}

#subscribe h3 {
  font-size: 150%;
}

#subscribe form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#subscribe input {
  margin: 10px 0;
}

#subscribe input[type='submit'] {
  width: 30%;
  background-color: transparent;
  border: none;
  padding: 10px 0; 
  font-size: 110%;
}

#subscribe input[type='submit']:hover {
  cursor: pointer;
  background-color: black;
  box-shadow: 0 0 2px grey;
  color: red;
}

#subscribe input[type='email'] {
  width: 70%;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid black;
  background-color: transparent; 
  font-size: 110%;
  outline: none;
  transition: all 0.2s ease-in-out;
  padding: 10px;
}

#subscribe input[type='email']:hover {
  border-bottom: 5px solid black;
}

.content {
  width: calc(100%-100px);
  margin: 0 auto;
}

#shop {
  margin: 50px 0;  
}

.feat-prod {
  display: flex;
  justify-content: center;
  width: 700px;
  margin: 0 auto;
}

.img {
  margin: 40px;
}

.img img {
  transform: scale(1.4);
}

.marketing-desc {
  margin: 40px 0;
}

#guides {
  margin: 80px auto;
  display: flex;
  text-align: center; 
}

#guides ul {
  list-style-type: none; 
  line-height: 1.8rem;
  margin: 0;
  padding: 0;
}

.guide {
  width: calc(100%/3);
  border: 1px solid #DDD6D0;
  margin: 0px 20px;
}

.guide-title {
  background-color: #DDD6D0;
  padding: 20px 0;
  font-size: 1.1rem;
}

.price {
  font-size: 1.4rem;
  font-weight: 600;
}

#guides button {
  margin: 20px 0;
  padding: 10px 40px;
  font-size: 1.1rem;
  border-radius: none;
  border: 1px solid black;
  background-color: inherit;
  color: black;
  font-weight: 600;
  transition: all .4s ease;
}

#guides button:hover {
  background-color: #757575;
  color: white;
  cursor: pointer;
  border: 1px solid #757575;
}

footer {
  background-color: #DDD6D0;
  padding: 20px 20px 5px 0;
  line-height: 0.8rem;
  font-size: 0.9rem;
  text-align: right;
}

#foot-menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

#foot-menu ul li:not(:last-of-type) {
  margin-right: 10px;
}

#foot-menu a {
  text-decoration: none;
  color: #000000;
  font-weight: 600;
}}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

Did you remember this?

Note: Be sure to add <link rel="stylesheet" href="styles.css"> in your HTML to link your stylesheet and apply your CSS”

Thank you so much!!

Duh! The absolute first step and i totally missed it! I was checking and checking the CSS and should have been checking the html!
,

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.