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

              
                <body>
  
  
  <div id="main">
    <h1 id="title">Bruce Lee</h1>
 

            <div id="img-div">
              <figure>
             <img id="image" src="https://www.thoughtco.com/thmb/-81H5kGREqz3t5JTAUtMzJ_evqM=/768x0/filters:no_upscale():max_bytes(150000):strip_icc()/bruce_lee_3206690-56a5ffd73df78cf7728ad4d0.jpg"/>
            <figcaption id="img-caption">
              Bruce lee dans le film "La colère du dragon"
            </figcaption>
            </figure> 
              
        </div>
    <section id="tribute-info">
      <div class="center-date">
        <h3>some important date :</h3>
          <ul>
            <li id="date">
              <strong>1940 :</strong> 
              <p>27 novembre, Bruce Lee nait l'année du dragon à l'heure du dragon, entre 7h et 9h du matin.</p>
            </li>
            <li id="date">
              <strong>1953-1954 :</strong>
              <p>début de l'étude du Wing Chun, dans l'école du célèbre Yip Man.</p>
            </li>
            <li id="date">
              <strong>1959 :</strong>
              <p>Le voyant mal tourner, ses parents décident de l'envoyer aux Etats-Unis. </p>
            </li>
            <li id="date">
              <strong>1964 :</strong>
              <p>Mariage avec Linda Emery ; démonstration au tournoi de Long Beach.</p>
            </li>
                      <li id="date">
              <strong>1970 :</strong>  
                        <p>grave blessure au dos qui l'immobilise pendant plusieurs mois.</p>
            </li>
                      <li id="date">
              <strong>1973 :</strong>
              <p>Bruce Lee meurt le 20 Juillet 1973, d'un oedème cérébrale consécutif à une réaction allergique à un médicament.</p>
            </li>
          </ul>
        </div><!-- .center-date -->
      </div>

    </section><!-- #tribute-info-->
    
    
    
    
    
  </div><!-- #main -->
</body>
<footer>
  <a href="https://fr.wikipedia.org/wiki/Bruce_Lee" target="_blank" id="tribute-link">wikipedia source</a>
</footer>

              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Arimo|Rock+Salt');

body{
  background-color:#000000;
  color: white;
  font-family: 'Arimo', cursive;
}

h1#title{
  text-align:center;
  color:gold;
  font-size: 3.5vw;
  font-family: 'Rock Salt', cursive;
  text-shadow:.5vw .5vh gray;
  margin: 0px;
}

#img-div #image{
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width:100%;
  height: auto;
}



#img-caption{
  padding-top: .8vh;
  text-align: center;
}

section#tribute-info{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: black;
}


section#tribute-info > *{
  width: 50%;
  height: 100%;
  list-style-position: inside;
}
section#tribute-info > div> h3{
  text-align: center;
}

section#tribute-info #date{
  padding: 2vmin;
}

section#tribute-info>div{
  display: flex;
  flex-direction: column;
  background-color: #aaaaaa;
  max-width: 50vw;
}

.center-date ul{
  padding-left:0;
  width: 70%;
}

.center-date{
  display: flex;
  background-color: red;
  width: 70%;
  align-items: center;
}

section#tribute-info>div>ul>li#date>strong{
  display: block;
  width: 20%;
  align-self: flex-start;
}
section#tribute-info>div>ul>li#date{
  display: flex;
  background-color: white;
  padding : 10px;
}

section#tribute-info>div>ul>li#date>p{
  display: block;
  width: 50%;
  align-self: flex-start;
}

footer{
  padding:10vh 0 10vh 0;
  display: flex;
  justify-content: center;
}

footer>a{
  text-align: center;
  width:20%;
}

	@media screen and (max-width: 600px){
    section#tribute-info>div>ul>li#date{
      display: flex;
      flex-direction:column;
      text-align: center;
    }
    
    section#tribute-info > div > ul > li#date > strong{
      width: 100%;
    }
    
      section#tribute-info>div>ul>li#date>p{
    display: block;
    width: 100%;
    align-self: flex-start;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console