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

              
                <!-- 

Hello Camper!

Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->

<link rel="preconnect" href="https://fonts.googleapis.com">

<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

<link href="https://fonts.googleapis.com/css2?family=Festive&display=swap" rel="stylesheet">
<main id="main">
  <h1 id="title">resin art</h1>
  <p>whats  resin  art and what do you need for resin art and  is  it expensive  or  not </p>
   <figure id=img-div>
     <img 
          id="image"
          src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRLplES_gGogY3Nbm6TNcqIHdKXrHHQwxqyDg&usqp=CAU"
          alt="painting see"
          </img>
     
      <figcaption id="img-caption">
        Resin art is created when a runny chemical called epoxy resin is combined with various color pigments and additives to produce a blend of unique patterns and textures. The resin mixture gradually hardens (when mixed with a hardener) to a solid plastic as a chemical reaction between its components takes place
        </figcaption >
     </figure>
  <section id="tribute-info">
    <section class="w">    <h3>is resin art expensive?!</h3>
    
    <p > Yes, Resin Art can be quite an expensive hobby. That's mainly because the Epoxy Resin can be costly if you create bigger Resin artworks. That's why also buying Resin Art pieces can cost a good amount of money.</p>
      </section >
    <section id="d">
     <h3>why resin art is dangerous </h3>
    <p>Artist resins can either be reactive or non-reactive. The non-reactive variety is dangerous because when mixed, they release volatile organic compounds (VOCs) during a chemical reaction and would leach over time. Putting cheap epoxy resin in water will make chemicals leach out of it.</p>
      </section >
    
    <h4>if you want to know  more about resins and their types  
    <a
       id="tribute-link"
       href="https://www.google.com/url?sa=t&source=web&rct=j&url=https://epoxycraft.com/top-tips-best-ways-to-use-epoxy/a-beginners-guide-to-resin-art-with-the-resin-reserve/&ved=2ahUKEwjp_MzFl9zzAhVS7uAKHajzCd4QFnoECDsQAQ&usg=AOvVaw1NduB4cW7BTvgYAXszOorg"
       target="_blank">click here</a>
       </h4>
  </section>
</main>
              
            
!

CSS

              
                html {
  /* Setting a base font size of 10px give us easier rem calculations
     Info: 1rem === 10px, 1.5rem === 15px, 2rem === 20px and so forth
   */
  font-size: 10px;
}

body {
  /* Native font stack https://getbootstrap.com/docs/4.2/content/reboot/#native-font-stack */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  text-align: center;
  color: #333;
  margin: 0;
  background-color: #e6eeff;
}
h1 {
  font-family: "Festive", cursive;
  margin-bottom: 0;
  font-size: 4rem;
}
@media (max-width: 460px) {
  h1 {
    font-size: 3.5rem;

    line-height: 1.2;
  }
}

img {
  max-width: 100%;

  display: block;

  height: auto;

  margin: 0 auto;
}

#img-div {
  background: white;

  padding: 10px;

  margin: 0;
}

#img-caption {
  margin: 15px 0 5px 0;
}

@media (max-width: 460px) {
  #img-caption {
    font-size: 1.4rem;
  }
}
@media (max-width: none) {
  img {
    width: 3px;
    display: block;
  }
}

#main {
  margin: 30px 8px;
  padding: 15px;
  border-radius: 5px;
  background: #eee;
}

@media (max-width: 460px) {
  #main {
    margin: 0;
  }
}

              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console