Product Landing Page - Build a Product Landing Page

Tell us what’s happening:
Describe your issue in detail here.
please how do i add image to my page
Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viwport" content="width=device-width, initial-scale=1.0">
    <title>Product-Landing Page</title>
    <link href="https://fonts.googleapis.com/css?family=Anton%7CBaskervville%7CRaleway&display=swap" rel="stylesheet" />
    <link href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" rel="stylesheet">
    <link rel="stylesheet" href="http://clipart-library.com/trombone-cliparts.html">
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>
    <header id="header">
      <img id="header-img" src="http://clipart-library.com/clipart/538362.htm" >
     
      <nav id="nav-bar">
        <ul>
          <li class="nav-link"></li>
          <li class="nav-link"></li>
          <li class="nav-link"></li>
        </ul>
      </nav>
    </header>
  </body>
</html>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.5249.103 Safari/537.36

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

please i need a guide on how to add image to my page

The tag may support (depending on the browser) the following image formats: jpeg, gif, png, apng, svg, bmp, bmp ico, png ico .

check out my code am i doing the right thing?

Where is your code? I don’t see any new code here.
image

image
At the end of your hyperlink you have “.htm”. This is not an appropriate image extension.

check this one out, if i am doing the right thing

Try with this image url:
https://cdn.pixabay.com/photo/2021/08/04/13/06/software-developer-6521720_960_720.jpg

i have tried it, it worked, but how can i add the particular picture that i want

From you PC: right mouse click on the desired image and in the pop-up dialogue box click on “Copy image address”. Then, paste that address between quotes in the src attribute of ‘img’ element. So, src=“click here and then paste”.



i have done it but is still not working

and please check if there is anything am not doing right

but when i used the link you sent me it worked

I have given you just an example. Don’t try to put an image from your PC to freeCodeCamp. You can do it on your PC, but you must have your index.html file on the PC too. For the purpose of the step, use some image from the Web (“https://miro.medium.com/max/897/1*7wzysqclJLByh6qT1yqAnQ.png” just another example!)

Tell us what’s happening:
Describe your issue in detail here.
please i need help on how to align my list element to be on the same margin,
am using a font awesome attribute and it is causing indentation
Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta carset="UTF-8">
  <link
  rel="stylesheet"
  href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
/>
<link rel="stylesheet" href="styles.css">
</head>
<body>
  <div class="content">
    <div class="insid"><i class="fa fa-3x fa-fire"></i></div>
    <div>
      <h2>
Premium Materials</h2>
      <p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.</p>
      </div>
    </div>
  <div class="content">
    <div class="inside"><i class="fa fa-3x fa-truck"></i></div>
    <div>
    <h2>
Fast Shipping</h2>
    <p>We make sure you recieve your trombone as soon as we have finished making it. We also provide free returns if you are not satisfied.</p>
  </div>
  </div>
</body>
</html>
/* file: styles.css */
.content{
  display:flex
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.5249.119 Safari/537.36

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge:

I think you can use something like this:

.inside i {
  min-width: 80px;
}

but you have to set the class inside on the div parents of the <i> elements
(you have a typo there right now so that would need to be fixed).

You can also learn how to use the flex layout and use it on the whole row.

thanks very much it worked

1 Like

Tell us what’s happening:
Describe your issue in detail here.
please can someone check my code i don’t know why is not loading
Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta carset="UTF-8">
  <link
  rel="stylesheet"
  href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
/>
<link rel="stylesheet" href="styles.css">
<meta name="viewport" content="device=width-device initial-scale=1.0">
</head>


<body>
  <header id="header">
    <div class="logo">
      <img src="https://i.postimg.cc/fLQyJfyd/Pngtree-lineart-music-equipment-black-cartoon-6132344-Trombone-10.png" width="33%" height="100%" border="1px solid">
    </div>
    <nav id="nav-bar">
      <ul>
        <li>Features</li>
        <li>How it works</li>
        <li>Pricing</li>
      </ul>
    </nav>
  </header>

<section>
  <form id="form">
    <h2>Handcrafted, home-made masterpieces</h2>
    <div class="input">
      <input id="email" type="email" placeholder="Enter your email" name="email" required>
    </div>
    <div class="botton">
      <input id="submit" type="botton" placeholder="Get Started" color="color:#010101" >
    </div>
  </form>
</section>

<section id="Features">
  <div class="container">
  <div class="content">
    <div class="inside"><i class="fa fa-3x fa-fire"></i></div>
    <div>
      <h2>
Premium Materials</h2>
      <p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.</p>
      </div>
    </div>
  <div class="content">
    <div class="inside"><i class="fa fa-3x fa-truck"></i></div>
    <div>
    <h2>
Fast Shipping</h2>
    <p>We make sure you recieve your trombone as soon as we have finished making it. We also provide free returns if you are not satisfied.</p>
  </div>
  </div>
  <div class="content">
    <div class="inside"><i class="fa fa-3x fa-battery-full"></i></div>
    <div>
      <h2>Quality Assurance</h2>
      <p>For every purchase you make, we will ensure there are no damages or faults and we will check and test the pitch of your instrument.</p>
    </div>
  </div>
  </div>
  </section>

  <section id="how it works">
    <iframe id="video" height="315"  src="https://youtube.com/watch?v=y8Yv4pnO7qc&feature=share&utm_source=EKLEiJECCKjOmKnC5IiRIQ" frameboredr="0" allowfullscreen>
    </iframe>
  </section>
</body>
</html>
/* file: styles.css */
header{
  width:100%;
  border:1px solid;
  display:flex;
}
nav{
  width:80%;
  display:flex;
}
nav ul{
  width:100%;
  display:flex;
}
nav ul li{
  width:100%;
  list-style:none;
  justify-content:space-between;
}

#form{
  width:80%;
  margin:40px;
  text-align:center;
  color:#010101;
}

#email{
  width:30%;
  height:1.9rem;
  margin-bottom:1rem;
  background-color:white;
}
#submit{
  width:20%;
  background-color:#f1c40f;
  border:none;
  text-align:center;
  padding:8 1 2 1;
  font-size:1.4rem;
}
::placeholder{
  color:black;
}
.container{
  width:80%;
  margin:5% 15% 0 15%
}

i{
  color:orangered
}
.content{
  display:flex
}
.inside{
  min-width:15%
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.5249.119 Safari/537.36

Challenge: Product Landing Page - Build a Product Landing Page

Link to the challenge: