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>
<header id="header">
  <nav id="nav-bar" class="nav-bar">
    <img id="header-img" src="http://pngriver.com/wp-content/uploads/2017/12/download-lion-PNG-transparent-images-transparent-backgrounds-PNGRIVER-COM-Lioness-Roar-PNG-Transparent-Image.png" alt="logo">
    <span id="logo-text">badger</span>

    <a href="#a-info" class="nav-link" title="info">
      <span id="logo">info</span></a>
    <a href="#a-video" class="nav-link" title="video">
      <span id="log">video</span></a>
    <a href="#a-donate" class="nav-link" title="donate"> <span id="l">donation</span>
    </a>
  </nav>
</header>

<body id="sam">
  <main class="main">
    <fieldset id="box1">
      <a class="anchor" id="a-info"></a>
      <h2 id="as">An Ngo for animals</h2>
      <div class="wsd">
        <img class="img" src="https://tse1.mm.bing.net/th?id=OIP.prN3MGns-lKEdmE6eY9U1wHaE7" alt="">
      </div>
      <p id="s">Animal welfare organizations are concerned with the health, safety and psychological wellness of animals. They include animal rescue groups which help individual animals in distress, and others that may help many animals of a kind suffering from some epidemic.</p>
       <p id="s">NGOs are getting funds for welfare of animals. the following activity the badger ngo's do:-</p>
      <ul id="oscar">
        <li>provides selters to animals</li>
        <li> provides foods to animal</li>
        <li>rise animal rights issues</li>
        <li>save animals through epedemic</li>

      </ul>
    </fieldset>
    <div class="container">
      <a class="anchor" id="a-video"></a>
      <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/WJE1F8BdovU" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    </div>
    <fieldset id="boxes">
      <a class="anchor" id="a-donate"></a>
        <h1 id="q">Donations and other things</h1>
      <div id="div">
        <div id="box3" class="sd">
           you can help them by giving small contribution of your money this may help for lots of animals... and also provide a good selter for them (^-^)
          <input id="donataion" placeholder="Enter the amount $" value="number" type="number" min="5" required=""> <input type="submit" class="sp" value="Submit">
        </div>
        <div id="sms">
          <h1 id="dash"> CONTACT US NOW</h1>
          <h3>please fill the form before</h3>

          <form id="form" action="https://www.freecodecamp.com/email-submit">
            <br>
            <label id="m" for="Name">Name :</label>
            <input id="NAME" class="sup" placeholder="Enter your Name" type="text"><br> <label id="m" for="Phone">Contact:</label> <input id="phone" placeholder="Enter your Contact" type="text" class="sup"><br>
            <label id="m" for="email">Email :</label><input id="email" placeholder="Enter your email" name="email" class="sup" type="email" value="Email" Required:"@gmail.com">
            <input type="submit" id="submit" value="Submit"><br>
          </form>
        </div>
      </div>
    </fieldset>
    <footer id="ada">copyright ©2020
    </footer>
  </main>
</body>
              
            
!

CSS

              
                body {
  background:#A9F5A9;
}
.nav-bar {
  width:100%;
  display: flex;
  padding:10px;
  margin-top:-20px;
  margin-left:-20px;
  position: fixed;
  border-bottom:solid;
  background-color: #a9f5f2;
}
#header-img {
  background-color: #a9f5f2;
  margin-left: 700px;
  width: 38.7px;
  height:45px;
  padding:4px; 
}
#logo-text {
  font-size: 40px;
  text-transform: uppercase;
  text-shadow: 2px 2px 5px red;
}
.nav-bar a {
  display: block;
  padding: 10px 30px;
  margin-left:50px;
  font-size:20px;
  text-transform: uppercase;
  position:relative;
  top:20px;
  left:40px;
  color: #4d4e53;
  text-decoration: none;
  cursor: pointer;
}
#boxes{
   background-color: #58D3F7;
  text-align:center;
}
#box1 {
  background-color: #f9e6ff;
  margin-bottom:20px;
}
#as {
  margin-top:50px;
  margin-left: 670px;
}
#box3 {
  padding: 15px;
  max-width: 155px;
  border-radius: 10px;
  border:2px solid;
  background-color:#F3F781;
}
#div{
  margin-left:500px;
  display:grid;
  grid-row-gap:15px;
  grid-template-columns:200px 200px;
}
.img {
  width: 474px;
  border: 1px solid black;
  margin-left: 550px;
  border-radius: 20px;
  box-shadow: 10px 10px 10px;
  margin-bottom: 20px;
}
#s {
  text-align: center;
  font-size: 20px;
  padding: 10px;
  margin-top: -20px;
  margin-bottom: 30px;
}
#oscar {
  margin-left: 600px;
  font-size: 20px;
  margin-top: -30px;
}
#donataion
{
  border-radius:12px;
  margin-top:12px;
  border: 1px solid;
}
.sp {
  margin: 5px;
  border-radius: 80px;
}
#submit {
  border-radius: 80px;
 }
#m{
  border:1px solid;
  margin-left:-12px;
  border-radius:21px;
  font-weight:bold;
  padding:3.5px;
}
#phone{
    margin-left:1px;
}
.sup{
  border:1px solid;
  margin-left:12px;
  border-radius:5px;
  margin-bottom:5px;
  padding:3.5px;
}
#ada
{
  text-align:center;
  border:1px solid;
  background :#FE642E;
  font-size:17.5px;
  color:white;
  text-shadow: 5px 0px 4px black;  
}
#video {
  border-radius: 10px;
  margin-top: 10px;
  margin-left: 500px;
  margin-bottom:10px;
  border: 3px solid black;
}
#sms
{
  width:260px;
  border:2px solid;
   padding: 15px;
  border-radius: 10px solid;
  background-color:#F3F781;
}
#q
{
  font-size:30px;
}

@media only screen and (max-width: 860px)
{
  /* For tabs: */
  #nav-bar{
    border-bottom: 2px solid black;
    height: 60px;
  }
  #header-img{
  background-color: #a9f5f2;
  margin-left: 200px;
  width: 50px;
  height:50px;
  padding:5px;
  }
.nav-bar a {
  margin-left:-30px;
  font-size:22px;
  margin-top:5.5px;
  }  
  #logo-text {
    font-size:40px;
    margin-top:10px;
}
  #box1 {
  margin-bottom:20px;   
}
  #as {
  margin-left:250px;
    margin-top:75px;
}
  .img {
  width: 300px;
  border: 1px solid black;
  margin-left: 205px;
  border-radius: 20px;
  box-shadow: 10px 10px 10px;
  margin-bottom: 20px;
}
  #s
  {
    font-size:20px;
    text-align:justified;
  }
  #oscar
  {
   font-size:20px;
    margin-left:205px;
  }
#video {
  border-radius: 10px;
  margin-top: 10px;
  margin-left: 10px;
  margin-bottom: 10px;
  width:750px;
  height:425px;
  border: 3px solid black;
  }
  footer
  {
    margin-top:2px;
  }
#div
{
  margin-left:150px;
   display:grid;
  grid-row-gap:5px;
}
  #box3
  {
     font-size:17.5px;
  }
  #sms
  {
    font-size:10px;
    width:250px;
  }
 #donataion
  {
   width:125px;
  }
 
  #phone
  {
    margin-left:5px;
  }
  label{
    padding:3.5px;
    font-size:12px;
  }
  #dash{
    font-size:13px;
  }
  h3{
    font-size:14px;
  }
  #q
  {
    text-align:center; 
    font-size:25px; 
  }
  #boxes
  {
   max-width:750px;
  }
}

@media only screen and (max-width: 400px)
{
  /* For mobile phones: */
  #nav-bar{
    border: 1px solid;
    height: 40px;
  }
  #header-img{
  background-color: #a9f5f2;
  margin-left: 50px;
  width: 27.7px;
  height:31.5px;
  padding:4px;
  }
.nav-bar a {
  margin-left:-30px;
  font-size:10px;
  margin-top:-10.5px;
}  
  #logo-text {
    font-size:20px;
    margin-top:10px;
}
  #box1 {
  margin-bottom:20px;
  max-width:400px;     
}
  #as {
  margin-left:1px;
}
  .img {
  width: 174px;
  border: 1px solid black;
  margin-left: 5px;
  border-radius: 20px;
  box-shadow: 10px 10px 10px;
  margin-bottom: 20px;
}
  #s
  {
    font-size:10px;
    text-align:left;
  }
  #oscar
  {
   font-size:10px;
    text-align:left;
    margin-left:1px;
  }
#video {
  border-radius: 10px;
  margin-top: 10px;
  margin-left: 10px;
  margin-bottom: 10px;
  width:350px;
  border: 3px solid black;
  }
  footer
  {
    margin-top:2px;
    font-size:12.5px;
  }
#div
{
  margin-left:1px;
   display:grid;
  grid-row-gap:5px;
}
  #box3
  {
     font-size:10px;
  }
  #sms
  {
    font-size:10px;
    width:120px;
  }
 #donataion
  {
   width:125px;
  }
  .sup{
    width:110px;
    height:10px;
    margin-top:10px;
    margin-bottom:10px;
    margin-left:-5px;
  }
  #phone
  {
    margin-left:-6px;
  }
  label{
    padding:-3.5px;
    font-size:10px;
  }
  #dash{
    font-size:10px;
  }
  h3{
    font-size:7.5px;
  }
  #q
  {
    text-align:center; 
    font-size:10px; 
  }
  #boxes
  {
   max-width:400px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console