123

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

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>
<head>
<style>
* {
	margin: 0;
	padding: 0;
	font-family: monospace;
	font-size: 14px;
}
 
.flex-container {
	display: flex;							
 			
	flex-direction: column;					
	width: 100vw;							
	height: 90vh;							
}

.maincontent {
 						
	border: 1px solid red;
	padding: 5px;
}

.flex-container-navigation {
	display: flex;				
 				
	align-items: center;					
	justify-content: center;					
	padding: 2px 5px 2px 5px; 
}

.headline {
	flex-basis: auto;								
}

.wrapper {
	display: flex;
	flex-direction: row;
  height:78vh;
}
aside.left-container {
	display:flex;							
 	
	flex-direction: column;					
 
}

div.left-container.left1 {
 			
	background: #AAAAAA;
}

div.left-container.left2 {
 			
	background: #AAAA88;
}

div.left-container.left3 {
 				
	background: #AA00CC;
}

aside.right-container, aside.right-container>*{
	display:flex;					
  		
	flex-direction: column;					

	
}

div.right-container.right1 {
	min-height:30px;
	background: #AAAA00;
}

div.right-container.right2 {
 				min-height:30px;
	background: green;
  	overflow-x: auto;
 
    white-space: nowrap;
}

div.right-container.right3 {
	min-height:30px;
	background: #AAAAFF;
}
.dropdown {
  position: relative;
  display: inline-block;
  background: white;
}

.dropdown > input[type="checkbox"] {
  position: absolute;
  left: -100vw;		
}

.dropdown > label,
.dropdown > a[role="button"] {
  display: inline-block;
  padding: 5px;
  border: 1px solid black;

}

.dropdown > label:after,
.dropdown > a[role="button"]:after {
  content: "\f0d7";						
  font-family: FontAwesome;				
  display: inline-block;
}

.dropdown > ul {
  position: absolute;
  z-index: 999;
  display: block;
  left: -100vw;
  top: calc(1.5em + 14px);
  border: 1px solid black;
  background: white;
  padding: 5px;
  margin: 0;
  width: calc(100% - 12px);
  cursor: pointer;
}


.dropdown > ul li:hover,
.dropdown > ul li:focus {
  background: #A9BCF5;		
}

.dropdown > input[type="checkbox"]:checked ~ ul,
.dropdown > ul:target {
  left: 0;
}

.list > ul {
	position: relative; 
	left: 0;
	display: inline-block;
	border: 1px solid black;
	padding: 5px;
	background: white;
	width: calc(100% - 12px);
}

  
.list > ul > li{
	list-style:none;
}

button{
	font-size: 14px;
	font-family: monospace;
	padding: 0px;
	width: 100%;
	left: 0;
	border: 0px;
	background: white;
	text-align: left;
}

button:hover{
	background: lightblue;
}
</style>

</head>
<body>

<FORM target="_self" action="" method="post">

<div class="flex-container">
	<div class="navigation">
		<div class="flex-container-navigation">
			<div class="headline">
				<button type="submit" name="headline" value="" style="border: 0px; margin: 0px; padding: 0px; background: none; cursor: pointer;">
					<p style="font-size: 30px; font-family: Coolvetica; font-weight: bold; margin: 0px; display: inline;">HEADLINE</p>
				</button>
			</div>
		</div>
	</div>
	<div class="maincontent">
		<div class="wrapper">
			<aside class="left-container">
				<div class="left-container left1"> 
					<div class="dropdown">
					  <input type="checkbox" id="my-dropdown" value="" name="my-checkbox">
					  <label for="my-dropdown" data-toggle="dropdown"> Alle anzeigen </label>
					  <ul>
						<li>
							<button type="submit" name="b1" value="file1" style="border: 0px; margin: 0px; padding: 0px; background: none; cursor: pointer;">
								<p style="font-size: 14px; margin: 0px; display: inline;">file1</p>
							</button>
						</li>
						<li>
							<button type="submit" name="b1" value="file2" style="border: 0px; margin: 0px; padding: 0px; background: none; cursor: pointer;">
								<p style="font-size: 14px; margin: 0px; display: inline;">file2</p>
							</button>
						</li>
						<li>
							<button type="submit" name="b1" value="filename länger als normal" style="border: 0px; margin: 0px; padding: 0px; background: none; cursor: pointer;">
								<p style="font-size: 14px; margin: 0px; display: inline;">filename laenger als normal</p>
							</button>
						</li>
					  </ul>
					</div>				
				</div>
				<div class="left-container left2"> 
					<div class="list">
						<ul>
							<li>
								<button type="submit" name="b2" value="b2">text1</button>
								<button type="submit" name="b2" value="b2">text2</button>
								<button type="submit" name="b2" value="b2">text3</button>
								<button type="submit" name="b2" value="b2">text4</button>
							</li>
						</ul>
					</div>
				</div>
				<div class="left-container left3"> left3 </div>
			</aside>
			<aside class="right-container">
				<div class="right-container right1"> right1</div>
				<div class="right-container right2"> 
 Das ist eine ziemliche lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange Textzeile, welche nicht umgebrochen werden soll
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>Das ist eine ziemliche lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange, lange Textzeile, welche nicht umgebrochen werden soll
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br> 
        
        </div>
				<div class="right-container right3"> right3 </div>
			</aside>
		</div>
	</div>
</div>

</FORM>

</body>
</html>
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console