cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <header>
  Bootstrap 4 Grid Introduce<br />
  <a href="http://muki.tw/tech/bootstrap4-grid-introduce/" target="_blank">(http://muki.tw/tech/bootstrap4-grid-introduce/)</a>
</header>

<div class="container">
  
  <h1>動態分配欄寬</h1>
  <div class="row">
    <div class="col-md">A</div>
    <div class="col-md-auto">Hello World / Nice to Meet you</div>
    <div class="col-md">C</div>
  </div>
  
  <hr />
  
  <h1>增加多個斷點的變化</h1>
  <div class="row">
    <div class="col col-sm-2">
      A
    </div>
    <div class="col-12 col-sm-auto">
      Hello World
    </div>
    <div class="col col-sm-5">
      C
    </div>
  </div>
            
          
!
            
              @import "compass/css3";

/**
Bootstrap 4 Grid Introduce
Autohr: Muki Wu
Article:http://muki.tw/tech/bootstrap4-grid-introduce/
**/

/* basic layout start (you can skip it) */
body {
  background: #333;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.1em;
}
a {
  text-decoration: none;
  color: #313131;
  &:hover {
    color: #000;
  }
}
section {
  width: 500px;
  margin: 0 auto;
  background: #555;
  padding: 1em;
  div {
    margin: 0 0 2em 0;
  }
}
header {
  background: #d9444a;
  text-align: center;
  color: #fff;
  padding: .7em 0;
  a {
    color: rgba(255,255,255,.6);
    @include text-shadow(1px 1px 1px #973735);
  }
  &:after {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    border-width: 10px;
    border-style: solid;
    border-color: #d9444a transparent transparent transparent;
    top: 53px;
    left: 50%;
  }
}

h2 {
  font-size: 1em;
  margin: 0 0 .5em 0;
  background: #444;
  display: inline-block;
  padding: .5em 1.2em;
  position: relative;
  left: -1em;
}

/* Bootstrap Introduce Start */

.container {
  margin-top: 2em;
  color: #333;
}

h1 {
  color: #eee;
  font-size: 20px;
}

.row>[class^=col] {
  padding-top: .75rem;
	padding-bottom: .75rem;
	background-color: #eee;
	border: 1px solid rgba(86,61,124,1);
}
            
          
!
999px
Loading ..................

Console