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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <div id="container">

<ul>
<li>
  <a href="https://www.target.com/c/top-deals/-/N-4xw74?ref=tgt_email_HNA107091N&emseq=923553565436514503&j=177215&sfmc_sub=269912306&l=48_HTML&u=118740506&mid=7284872&jb=9237&sfir=981956">Top Deals
  </a>
</li>
<li> 
  <a href="https://www.target.com/finds?ref=tgt_email_HNA107091N&emseq=923553565436514503&j=177215&sfmc_sub=269912306&l=48_HTML&u=118740507&mid=7284872&jb=9237&sfir=981956">Target Finds
  </a>
</li>
<li>
  <a  href="https://www.target.com/circle/dashboard?ref=tgt_email_HNA107091N&emseq=923553565436514503&j=177215&sfmc_sub=269912306&l=48_HTML&u=118740509&mid=7284872&jb=9237&sfir=981956">Target Circle
  </a>
</li>      
</ul>
        
<div id="explore">
                 
<p><strong>Ready for summer?</strong></p>

<p>Explore the<strong> Hearth & Hand with Magnolia</strong></p>

<p>summer collection featuring comfy outdoor tops and dresses.</p>

</div>

<img src="https://target.scene7.com/is/image/Target/GUEST_471bb8ff-7937-4b41-b849-25bb5ae376c2?wid=488&hei=488&fmt=pjpeg" alt="Girl in Bob Marley Top">

<div id="details">
<a href="https://help.target.com/help/subcategoryarticle?childcat=Current+promotions&parentcat=Promotions+%26+Coupons&searchQuery=search+help&ref=tgt_email_HNA107091N&emseq=923553565436514503&link=offerdetails&elnk=traditional&j=177215&sfmc_sub=269912306&l=48_HTML&u=118741299&mid=7284872&jb=9237&sfir=993989">*See the full details of all deals.<br>
Some restrictions apply.
</a>

<a href="https://help.target.com/help/subcategoryarticle?childcat=Current+promotions&parentcat=Promotions+%26+Coupons&searchQuery=search+help&ref=tgt_email_HNA107091N&emseq=923553565436514503&link=offerdetails&elnk=traditional&j=177215&sfmc_sub=269912306&l=48_HTML&u=118741618&mid=7284872&jb=9237&sfir=993989">Offer Details
</a>

</div>

<div id="information"> 

<p>Okay, so here’s the fine print:</p>
 
<p>
 Promotions valid Sunday–Saturday unless otherwise stated. Pricing, promotions, and availability may vary by location and online. Descriptive, typographic and photographic errors are subject to correction and Target shall have no liability for such errors.
</p>

<p>
 ¹Target Circle™: Restrictions apply. See Target.com/circle for program rules.Target.com/circle for details.
</p>

<p>
  1% Earnings: Terms and restrictions apply to the 1% reward. Target Circle Earnings rewards will expire if you have not earned or redeemed any Target Circle Earnings rewards for one year. See Target.com/circle for details.
</p>

<p>
  Community Support: Earn votes to help direct where Target gives in your community. See Target.com/circle for details.
</p>

<p>
  ²RedCard™: Some restrictions apply. See program rules in store or on Target.com/RedCard for details.
</p>

<p>
  RedCard™: Target Debit Card, Target Credit Card, and Target™ MasterCard©. Subject to application approval (Target MasterCard not available to new applicants). The RedCard credit cards (Target Credit Card and Target MasterCard) are issued by TD Bank USA, N.A. The RedCard debit card is issued by Target Corporation. MasterCard is a registered trademark of MasterCard International, Inc. Pat 7,562,048 and 8,117,118.
</p>

<p>
  For messages containing promotional codes: Discount applied at checkout with valid promotion code. Discount not applicable to gift wrap, tax or shipping and handling charges. May not be applied to previous orders. Exclusions may apply. Offer details ›
</p>

<p>
  For messages containing gift card offers: Gift card on select items with purchase. Terms and conditions apply to gift cards. Offer details ›
</p>

<p>
  ©2021 Target.com. Target and the Bullseye Design are registered trademarks of Target Brands, Inc.
</p>
  
</div>
   
<div id="footer">
 <img src="https://www.freepnglogos.com/uploads/2021-png/hd-2021-emblem-png-14.png" alt="Target_Logo">
</div>

</div>
              
            
!

CSS

              
                body {
  background-color: #f0f0f0;
  font: normal 1em / 1.5em sans-serif;
 } 
#container {
  max-width: 50em;
  margin: auto;
  border: 1px solid #ccc;
  background-color: #fff;
 }     
ul {
  display: flex;
  justify-content: center;
  padding: 1em 0;
  margin: 0;
  background-color: #d3d3d3;
  list-style: none;
}
ul a {
  display: block;
  padding: 0.625em 0;
  margin: 0 0.625em;
  text-decoration: none;
  }
#explore {
  padding: 1.25em;
  background-color: #e8e46e;
  text-align: center;
}
#explore p {
  margin: 0;
}
#container > img {
  display: block;
  width: 100%;
  height: auto;
}
#details {
  display: flex;
  justify-content: space-between;
  padding:1.25em;
  background-color:#f00;
} 
#details a {
  color: #fff;
  text-decoration: none;
}
#details a:first-of-type {
  padding-right: 0.625em;
}
#details a:last-of-type {
  padding: 0.625em;
  border: 0.2em solid #fff;
  text-align: center;
}
#information {
 padding: 0.625em 1.25em;  
} 
#information p {
  margin: 0.625em 0;
  font-size: 0.75em;
}
#information p:first-of-type {
  font-weight: bold;
}
#footer {
  padding: 0.625em ;
  background-color: #a52a2a;
}
#footer img {
  display: block;
  width: 7em;
  height: auto;
}
              
            
!

JS

              
                
              
            
!
999px

Console