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

              
                <!DOCTYPE html>
<head>
<link rel="stylesheet" type="text/css" href="Informatik#3.css"></link>
<script src="Informatik#3.js"></script>
<title>Informatik Hausarbeit</title>
</head>


<body>
<div id="mySidenav" class="sidenav">
  <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
   <a href="#">Geschichte</a>
   <a href="#">Ursprung</a>
   <a href="#">Weitere Entwicklung</a>
   <a href="#">Gebiete</a>
   <a href="#">Klassische      Teilgebiete</a>
   <a href="#">Theoretische Astrophysik</a>
    <a href="#">Beobachtende Astrophysik</a>
    <a href="#">Laborastrophysik</a><a href="#">Verhältnis zu anderen Teilgebieten der Physik</a>
</div>

<div id="main">
  <span style="font-size:30px;cursor:pointer" onclick="openNav()">&#9776; open</span>
  
  <div class="header">
    <div id="header-text" class="partner">
      <h1>Physik</h1>
 </br>
 </br>
 </br>
    <div class="tooltip"><i>As·t·ro·phy·sik<i>
  <span class="tooltiptext">Ein Projekt des Informatik Kurses Q1 2016</span>
</div>
    </div>
  </div>
  
<div class="fillbx">
  <p><br><br><br><br><br></p>
</div>
  
<div class="body">
  
  <image class="img" src="https://www.nasa.gov/sites/default/files/moon_and_earth_lroearthrise_frame_0.jpg">

    <br>
    <br>
    <br>
  <!--<div class="information">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius.
</div>

  </br>  
  
<div class="text-oszilloskop"> 
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu </p>
</div>


</div>-->



              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Archivo+Narrow|Bungee+Hairline|Codystar|Delius+Swash+Caps|Megrim|Montserrat+Subrayada');

body {
    font-family: "Lato", sans-serif;
    transition: background-color .5s;
    background-color: white;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 20px;
    color: #818181;
    display: block;
    transition: 0.3s
}

.sidenav a:hover, .offcanvas a:focus{
    color: #f1f1f1;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

#main {
    transition: margin-left .5s;
    padding: 16px;
    font-family: 'Megrim', cursive;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

.header {
    background-color: none;
    background-position: center center;
    background-size: cover;
    height: 400px;
    width: 100%;
}

#header-text {
  margin: 0 auto;
  position: relative;
  text-align: center;
  top: 25%;
  width: 60%;
}

.tooltip {
    color: black;
    font-family: 'Megrim', cursive;;
    text-align: center;
    font-size: 28px;
    font-weight: 100;
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltiptext {
  color: #FFF;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  font-size: 15px;
  font-weight: 200;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    margin-left: -60px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

h1 {
  color: black;
  font-family: 'Bungee Hairline', cursive;
  font-size: 150px;
  font-weight: 900;
  letter-spacing: 20px;
  text-align: center;
  line-height: 60px;
  margin: 0;
}

h2 {
  color: #FFF;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  font-size: 28px;
  font-weight: 100;
}

.fillbx {
  heigth: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  height: 1000px;
  background: grey; /* For browsers that do not support gradients */
    background: -webkit-linear-gradient(white, black); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(white, black); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(white, black); /* For Firefox 3.6 to 15 */
    background: linear-gradient(white, black); /* Standard syntax (must be last) */
}

.bottom {
  background-image: url("https://www.nasa.gov/sites/default/files/moon_and_earth_lroearthrise_frame_0.jpg")
}

.information {
font-family: 'Lato', sans-serif;
    -webkit-column-count: 3;
    -webkit-column-gap: 40px;
    -webkit-column-rule-style: outset;
    -webkit-column-rule-color: rgba(81, 67, 76, 0.6);

    -moz-column-count: 3;
    -moz-column-gap: 40px;
    -moz-column-rule-style: outset;
    -moz-column-rule-color: rgba(81, 67, 76, 0.6);

    column-count: 3;
    column-gap: 40px;
    column-rule-style: outset;
    column-rule-color: rgba(81, 67, 76, 0.6);
    margin-left: 20px;
    margin-right: 20px;
    /*border-color: black;
    border-width: 5px;
    border-style: output;*/
}

.img {
  width: 100%;
}

.text-oszilloskop {
  font-family: 'Lato', sans-serif;
  padding-left: 5px;
  color: white;
  margin-top: 5px;
  width: 100%;
  padding: 10px;
  outline-style: solid;
  background-color: #3e3647;
}

/* 
font-family: 'Codystar', cursive;
font-family: 'Montserrat Subrayada', sans-serif;
font-family: 'Delius Swash Caps', cursive;
font-family: 'Bungee Hairline', cursive;
font-family: 'Megrim', cursive;
font-family: 'Archivo Narrow', sans-serif;  */
              
            
!

JS

              
                function openNav() {
    document.getElementById("mySidenav").style.width = "250px";
    document.getElementById("main").style.marginLeft = "250px";
    document.body.style.backgroundColor = "rgba(0,0,0,0.4)";
}

function closeNav() {
    document.getElementById("mySidenav").style.width = "0";
    document.getElementById("main").style.marginLeft= "0";
    document.body.style.backgroundColor = "white";
}
              
            
!
999px

Console