Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<!DOCTYPE html>
<html>
<head>
	<title>Page de produit</title>
</head>
<body>
<div id="pagewrap">
  <header id="header">
  <div class="header-img"><img id="header-img" src="https://www.raprnb.com/wp-content/uploads/2019/05/logo-dcntd.png">
  </div>
<div class="nav-bare">
  <nav id="nav-bar">
    <ul>
      <li><a class="nav-link" href="#unvideo">Acceuil</a></li>
      <li><a class="nav-link" href="#texte1">Produits</a></li>
      <li><a class="nav-link" href="#form">Newsletter</a></li></nav></header>
<div id="texte1">
  <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis tempus massa. Aenean erat nisl, gravida vel vestibulum cursus, interdum sit amet lectus. Sed sit amet quam nibh. Suspendisse quis tincidunt nulla. In hac habitasse platea dictumst. Ut sit amet pretium nisl. Vivamus vel mi sem. Aenean sit amet consectetur sem. Suspendisse pretium, purus et gravida consequat, nunc ligula ultricies diam, at aliquet velit libero a dui.</p></div>
  <div id="unvideo"><iframe id="video" width="400" height="250" src="https://www.youtube.com/embed/gcwzRzaBUS4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>
<div id="texte">
  <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis tempus massa. Aenean erat nisl, gravida vel vestibulum cursus, interdum sit amet lectus. Sed sit amet quam nibh. Suspendisse quis tincidunt nulla. In hac habitasse platea dictumst. Ut sit amet pretium nisl. Vivamus vel mi sem. Aenean sit amet consectetur sem. Suspendisse pretium, purus et gravida consequat, nunc ligula ultricies diam, at aliquet velit libero a dui.</p></div>
  <div id="newsletter">
   <h3>Entrez votre e-mail pour rester branché</h3>
  <form id="form" action="https://www.freecodecamp.com/email-submit">
    <input id="email" type="email" name="email"  required placeholder="entrez votre email">
    <input id="submit" type="submit" value="S'inscrire" class="btn" >
    </div>
    <footer> <p>2018-2019 la beauté incarnée no copyright</p></footer>
    </div></body>
</html>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;}
#header-img{
 max-width: 100%;
 float:left;
 height: 100px;

}
#pagewrap{
  display: relative;
}
#header{
background-color:white; 
max-width:10000px;
width:100%;
position: fixed;
top:0;
display: flex;
justify-content: space-around;
margin: 0 auto;
}
.nav-bare ul{
  font-size:20px;
}
#video{
display: block;
margin: 0 auto;
}
.nav-bare ul li{ 
display:inline;
margin-top: ;
padding: 20px;
}
.nav-bare{
  margin: auto;
}
li {
  list-style: none;
}
a {
  color: #000;
  text-decoration: none;
}

#texte1{
  margin-top: 120px;

}
p{
  font-family: arial;

}
h3{
  padding: 15px;
  text-align: center;
  }
#form{
  text-align: center;
}
.text{
  margin-top: 20px;  
  margin-bottom:20px;
}
a:hover{
  font-size:30px;
   transition: 0.3s;
}
footer{
  background-color:grey;
  margin-top: 50px;
  
}
@media screen and (max-width: 672px) {
 
  #header-img{
 width:200px;
 display:block;
 margin: auto;
 height:100%;
    }
  #texte1{
    margin-top: 320px;}

  #header{
background-color:white; 
display: grid;
    margin: 0 auto;
}

  }

              
            
!

JS

              
                
              
            
!
999px

Console