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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <!-- 
https://dribbble.com/shots/5442145-Artist-Portfolio-Selected-Collection -->
<div class="grid">
  <div class="category">
    If You Rescue Me<br>(Chanson Des Chats)
    <address>Gael Garcia Bernal</address>
  </div>
  <div class="aside">
    <div class="img">
      <img src="https://t1.daumcdn.net/thumb/R1280x0/?fname=http://t1.daumcdn.net/brunch/service/user/3EZt/image/iZz4RFibvR53stODxlGBeKcqcFM.jpg">
    </div>
    <p class="lyrics scroll">If you rescue me I'll be your friend forever
나를 구해준다면, 영원히 당신의 친구가 될게요

Let me in your bed I'll keep you warm in winter
침대로 들여주세요, 겨울에도 따뜻하게 해줄테니

All the kitties are playing and they're having such fun
모든 고양이들은 정말 재밌게 장난을 치고 있는데

I wish that could happen to me
그런 일이 나한테도 일어났으면..

But if you rescue me I'll never have to be alone again
하지만 날 구해준다면, 난 혼자일 필요가 없을거에요

Oh the cars drive so fast and the people are mean
오 차들은 빠르게 지나가고, 인간들은 거칠고

And sometimes it's hard to find food
가끔은 음식을 찾기가 어렵죠

Let me into your world I'll keep you warm and amused
당신의 세계에 날 맞이해줘요, 따뜻하고 즐겁게 해줄테니

All the things we can do in the rain
빗속에서 할 수 있는 일이 얼마나 많은걸요

If you rescue me I'll be your friend forever
나를 구해준다면, 영원히 당신의 친구가 될게요

Let me in your bed I'll keep you warm in winter
침대로 들여주세요, 겨울에도 따뜻하게 해줄테니

Oh someday I know someone will look into my eyes
오 언젠가, 누군가 내 눈을 보고 말하겠죠

And say, "Hello, you're my very special kitten"
"안녕, 넌 나의 특별한 고양이란다" 이렇게

So if you rescue me I'll never have to be alone again
그러니 나를 구해준다면, 더는 혼자일 필요가 없을거에요
    </p>
  </div>
  <div class="content">
    <div class="left-info">Lovely movie</div>
    <div class="right-info">" This girl is at once all the women that broke my heart. She is so beautiful and generous and she is asking me to leave because she is dumping me. She is dumping me because I am a cheap drug dealer. And I am a drug dealer because she wants to leave me. "</div>
    <h1>La science
      des rêves</h1>
    <div class="video">
     <iframe width="560" height="315" src="https://www.youtube.com/embed/bJ8bcroxwdM?start=59" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
      <img src="https://user-images.githubusercontent.com/41318449/54696497-49049180-4b6f-11e9-9b87-b27481b73c20.jpg">
      </iframe>
      
    </div>
  </div>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Arvo:400,400i,700,700i');
@import url('https://fonts.googleapis.com/css?family=Lora:400,700');
@font-face { font-family: 'UhBeeMiMi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_five@.2.0/UhBeeMiMi.woff') format('woff'); font-weight: normal; font-style: normal; }

*{
  margin:0;
  padding:0;
  font-weight:400;
}

body{
  font-family: 'Lora', serif;
  color:#ffffff;
}

.grid{
  width:100vw;
  height:100vh;
  background:#3E5895;
  display:grid;
  grid-template-columns:repeat(12 ,1fr);
  grid-template-rows:repeat(12 ,1fr);
}

div.category{
  font-size:1.2rem;
  grid-area: span 2/ span 3;
  
  border-right:1px solid #ffffff;
  border-bottom:1px solid #ffffff;
}
div.aside{
  padding:0 !important;
  display:grid;
  grid-row : 3/ span 12;
  grid-column : 1/ span 3;
  border-right:1px solid #ffffff;
  grid-template-rows : 270px 1fr;
  grid-template-columns:1fr;
}

p.lyrics{
  padding:30px;
  padding-top:0px;
}
div.img{
  padding:30px;
}
div.content{
  grid-area : span 12/ span 9;
  display:grid;
  grid-template-columns:5fr 3fr;
  grid-template-rows:1fr 5fr 8fr;
}

div.grid>div{
  box-sizing:border-box;
  padding:30px;
  overflow:hidden;
}
h1{
  white-space:pre-line;
  grid-row:2;
  grid-column:1 / span 2;
  font-size:5rem;
}

div.video{
  width:100%;
  height:100%;
  grid-row:3;
  grid-column:1 / span 2;
  overflow:hidden;
}

iframe{
  width:100%;
  height:100%;
}
 
img{
 object-fit:cover;
  width:100%;
  max-height:100%;
}

p.lyrics{
 font-size:1.3rem;
 font-family:'Lora', 'UhBeeMiMi';
 white-space:pre-line;
}

.scroll {
  
  overflow-y:scroll;
}

.scroll::-webkit-scrollbar {
  width: 5px;
}
 
.scroll::-webkit-scrollbar-track {
  background: #ddd;
}
 
.scroll::-webkit-scrollbar-thumb {
  background: #666; 
}
.category {
  font-size:1.2rem;
  position:relative;
}
.category address:before{
  content :'-';
}
.category address:after{
  content :'-';
}
.category address{
  font-size:0.8rem;
  position:relative;
  top:20px;
  left:190px;
}

div.right-info{
  font-size:0.6rem;
}
              
            
!

JS

              
                
              
            
!
999px

Console