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

              
                <!-- 六角學院 2020 網切班第六週作業 -->
<div class="container-fluid container-md py-3">
  <div class="row position-relative">
    <div class="col-md-8 mb-4">
      <img class="img-fluid"  src="https://github.com/hexschool/webLayoutTraining1st/blob/master/perfume-week6/product1.jpg?raw=true" alt="商品圖片">
    </div>
    <div class="col-md-4 position-absolute-md-right">
      <h3>商品名稱</h3>
      <p>
        Lorem ipsum dolor sit, amet consectetur adipisicing elit. Laudantium totam eaque nobis vitae, saepe quia dolores tenetur vero, earum qui laboriosam fugiat laborum, perspiciatis minima sapiente animi. Ratione facere numquam ad laborum optio possimus vel magni odio vitae et dignissimos tempore, aliquid recusandae, iure atque obcaecati neque. A, aliquid mollitia delectus corporis odio quia recusandae dolor natus? Nulla cupiditate doloribus illum aut expedita tempora commodi quo doloremque earum fugiat tenetur asperiores assumenda quam neque, ullam necessitatibus quae voluptatum, veniam delectus consequatur a sapiente qui! Consequatur mollitia quis vero illum quos nostrum maiores perspiciatis. Eligendi perferendis unde, consectetur provident dolores iure eaque aperiam ducimus? Deleniti saepe, dignissimos, cum labore sed sit sint asperiores eum voluptatem architecto fuga incidunt totam odit. Consectetur voluptatibus magnam nihil excepturi atque suscipit ut labore consequuntur harum illo repellendus iure molestiae facilis laborum et voluptas quibusdam eos unde commodi, dicta officia. Magnam nostrum dolor quibusdam nam tempora!
      </p>
    </div>
    <div class="col-md-8">
      <div class="row">
        <div class="col-md-6 mb-4">
          <img class="img-fluid"  src="https://github.com/hexschool/webLayoutTraining1st/blob/master/perfume-week6/product2.jpg?raw=true" alt="商品圖片">
        </div>
        <div class="col-md-6 mb-4">
          <img class="img-fluid"  src="https://github.com/hexschool/webLayoutTraining1st/blob/master/perfume-week6/product3.jpg?raw=true" alt="商品圖片">
        </div>
        <div class="col">
          <img class="img-fluid"  src="https://github.com/hexschool/webLayoutTraining1st/blob/master/perfume-week6/product1.jpg?raw=true" alt="商品圖片">
        </div>
      </div>
    </div>
  </div>
</div>


              
            
!

CSS

              
                .position-absolute{    
    @media (min-width: 768px){
        &-md-top{
            position: absolute;
            top:0;
        }
        &-md-bottom{
            position: absolute;
            bottom:0;
        }
        &-md-right{
            position: absolute;
            right: 0;
        }
        &-md-left{
            position: absolute;
            left: 0;
        }
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console