Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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 class="wrapper">
  <!-- <section class="top_title_block">
            <div class="text_content">
                <h6>REMEMBER & FORWARD</h6>
                <h1>IMPORTANT<span>MOTTOS</span></h1>
                <p>I'm a UI/UX designer, Art Director and Front-End developer from Taiwan.</p>
            </div>
        </section> -->
  <section class="saying_block Musk">
    <div class="saying_content">
      <div class="text_box">
        <h2>“ I like to be involved in things <br>that change the world ”</h2>
        <h3>我喜歡參與改變世界的事情</h3>
        <p> - Elon Musk</p>
      </div>
    </div>
  </section>
  <!-- <section class="saying_block davinci">
           <div class="saying_content">
               <div class="text_box">
                   <h2>“ Simplicity is the <br>ultimate sophistication ”</h2>
                   <h3>簡約是細膩的極致</h3>
                   <p> - Leonardo da Vinci</p>
               </div>
           </div>
        </section> -->
  <section class="saying_block buffett">
    <div class="saying_content">
      <div class="text_box">
        <h2>“ Games are won by players who <br>focus on the playing field, not by <br>those whose eyes are glued <br>to the scoreboard. ”</h2>
        <h3>比賽會贏的球員只專注在球場上,不是計分板上的分數</h3>
        <p> - Warren Edward Buffett</p>
      </div>
    </div>
  </section>
  <section class="saying_block bezos">
    <div class="saying_content">
      <div class="text_box">
        <h2>“ Cleverness is a gift, <br>kindness is a choice ”</h2>
        <h3>聰明是一種天賦,而善良是一種選擇</h3>
        <p> - Jeff Bezos</p>
      </div>
    </div>
  </section>
  <!-- <section class="saying_block Einstein">
           <div class="saying_content">
               <div class="text_box">
                   <h2>“ Imagination is more <br>important than knowledge ”</h2>
                   <h3>想像力比知識更重要</h3>
                   <p> - Albert Einstein</p>
               </div>
           </div>
        </section> -->
  <section class="saying_block sandberg">
    <div class="saying_content">
      <div class="text_box">
        <h2>“ Done is better than perfect ”</h2>
        <h3>比起空想完美,完成事情更加重要</h3>
        <p> - Sheryl Sandberg</p>
      </div>
    </div>
  </section>
  <section class="saying_block Jobs">
    <div class="saying_content">
      <div class="text_box">
        <h2>“ Stay hungry , stay foolish ”</h2>
        <h3>求知若飢,虛心若愚</h3>
        <p> - Steven Paul Jobs</p>
      </div>
    </div>
  </section>
  <div id="include_footer">
  </div>
</div>
              
            
!

CSS

              
                .wrapper {
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
}
div {
  display: block;
}
.saying_block.Musk {
  background-image: url(http://www.lan-chun-chih.com/images/man_musk.jpg);
}
.saying_block {
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
article,
aside,
footer,
header,
hgroup,
main,
nav,
section {
  display: block;
}
html,
body {
  width: 100%;
  height: 100%;
  background: #e9e9e9;
  font-family: "Roboto", "Noto Sans TC", sans-serif;
  color: #172730;
}
html,
body {
  width: 100%;
  height: 100%;
  background: #e9e9e9;
  font-family: "Roboto", "Noto Sans TC", sans-serif;
  color: #172730;
}
.saying_block.Musk .saying_content {
  background-color: rgba(183, 73, 73, 0.7);
}
.saying_block .saying_content {
  width: 100%;
  height: 100%;
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
input,
textarea,
p,
blockquote,
th,
td {
  margin: 0;
  padding: 0;
}
.saying_block .saying_content {
  width: 100%;
  height: 100%;
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.saying_block .saying_content .text_box h2 {
  font-weight: normal;
  font-size: 42px;
  line-height: 50px;
  font-family: "Bitter", serif;
  font-style: italic;
  letter-spacing: 1px;
}
h2 {
  display: block;
  font-size: 1.5em;
  -webkit-margin-before: 0.83em;
  -webkit-margin-after: 0.83em;
  -webkit-margin-start: 0px;
  -webkit-margin-end: 0px;
  font-weight: bold;
}
.saying_block .saying_content .text_box h3 {
  font-size: 15px;
  letter-spacing: 15px;
  font-weight: normal;
  padding: 30px 0 20px 0;
}
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
input,
textarea,
p,
blockquote,
th,
td {
  margin: 0;
  padding: 0;
}
h3 {
  display: block;
  font-size: 1.17em;
  -webkit-margin-before: 1em;
  -webkit-margin-after: 1em;
  -webkit-margin-start: 0px;
  -webkit-margin-end: 0px;
  font-weight: bold;
}
.saying_block .saying_content .text_box p {
  font-size: 12px;
  letter-spacing: 2px;
  padding: 20px 0 20px 0;
  opacity: 0.7;
}
p {
  display: block;
  -webkit-margin-before: 1em;
  -webkit-margin-after: 1em;
  -webkit-margin-start: 0px;
  -webkit-margin-end: 0px;
}
.saying_block.buffett {
  background-image: url(http://www.lan-chun-chih.com/images/man_buffett.jpg);
}
.saying_block.buffett .saying_content {
  background-color: rgba(29, 69, 106, 0.7);
}
.saying_block.bezos {
  background-image: url(http://www.lan-chun-chih.com/images/man_bezos.jpg);
}
.saying_block.bezos .saying_content {
  /* background-color: rgba(223, 168, 0, 0.7); */
  background-color: rgba(16, 36, 55, 0.7);
}
.saying_block.sandberg {
  background-image: url(http://www.lan-chun-chih.com/images/man_sandberg.jpg);
}
.saying_block.sandberg .saying_content {
  background-color: rgba(210, 24, 76, 0.7);
}
.saying_block.Jobs {
  background-image: url(http://www.lan-chun-chih.com/images/man_jobs.jpg);
}
.saying_block.Jobs .saying_content {
  background-color: rgba(0, 159, 153, 0.7);
}

              
            
!

JS

              
                
              
            
!
999px

Console