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

              
                <div class="container">
    <div id="visible">
    <h3>Visible</h3>
    <p> Lorem ipsum dolor, sit amet consectetur adipisicing elit. Adipisci, et soluta beatae magni at aut accusamus commodi cum voluptatem. Adipisci labore quibusdam tenetur est cumque non, dolor ipsum quaerat deserunt? Lorem ipsum dolor, sit amet consectetur adipisicing elit. </p>
 </div>
  
  <div id="auto">
    <h3>Auto</h3>
    <p> Lorem ipsum dolor, sit amet consectetur adipisicing elit. Adipisci, et soluta beatae magni at aut accusamus commodi cum voluptatem. Adipisci labore quibusdam tenetur est cumque non, dolor ipsum quaerat deserunt? Lorem ipsum dolor, sit amet consectetur adipisicing elit. Adipisci, et soluta beatae magni at aut accusamus commodi cum voluptatem. Adipisci labore quibusdam tenetur est cumque non, dolor ipsum quaerat deserunt?</p>
 </div>


  <div id="scroll">
    <h3>Scroll</h3>
    <p> Lorem ipsum dolor, sit amet consectetur adipisicing elit. Adipisci, et soluta beatae magni at aut accusamus commodi cum </p>
    <p style="width:300px;  background-color:red;">voluptatem. Adipisci labore quibusdam tenetur est cumque non, dolor ipsum quaerat deserunt? Lorem ipsum dolor, sit amet consectetur adipisicing elit. Adipisci, et soluta beatae magni at aut accusamus commodi cum voluptatem. Adipisci labore quibusdam tenetur est cumque non, dolor ipsum quaerat deserunt?</p>
 </div>
  <div id="hidden">
    <h3>Hidden</h3>
    <p> Lorem ipsum dolor, sit amet consectetur adipisicing elit. Adipisci, et soluta beatae magni at aut accusamus commodi cum voluptatem. Adipisci labore quibusdam tenetur est cumque non, dolor ipsum quaerat deserunt? Lorem ipsum dolor, sit amet consectetur adipisicing elit. Adipisci, et soluta beatae magni at aut accusamus commodi cum voluptatem. Adipisci labore quibusdam tenetur est cumque non, dolor ipsum quaerat deserunt?</p>
 </div>

  
</div>
<div class="container ">
     <div id="scroll-x">
    <h3>Scroll-x</h3>
      <p style="width:300px;">voluptatem. Adipisci labore quibusdam tenetur est cumque non, dolor ipsum quaerat deserunt? Lorem ipsum dolor, sit amet consectetur adipisicing elit. Adipisci, et soluta beatae magni at aut accusamus commodi cum voluptatem. ?</p>
 </div>
   <div id="scroll-y">
    <h3>Scroll-y</h3>
    <p> Lorem ipsum dolor, sit amet consectetur adipisicing elit. Adipisci, et soluta beatae magni at aut accusamus commodi cum </p>
    <p style="width:300px;  background-color:red;">voluptatem. Adipisci labore quibusdam tenetur est cumque non, dolor ipsum quaerat deserunt? Lorem ipsum dolor, sit amet consectetur adipisicing elit. Adipisci, et soluta beatae magni at aut accusamus commodi cum voluptatem. Adipisci labore quibusdam tenetur est cumque non, dolor ipsum quaerat deserunt?</p>
 </div>
</div>

              
            
!

CSS

              
                .container{
  width: 100%;
  display: flex; 
  justify-content: space-between;
  border: none;
  margin-bottom:150px;
}
div {
  width: 150px;
  margin-right:10px;
  height: 200px;
  border: 3px solid red;
  text-align: justify
 }
#visible{
  overflow: visible;// ili jednostavno  se ne definiše jer je default-no ponašanje
}

#auto{
  overflow: auto;
}
#scroll{
  overflow:scroll;
}
#scroll-x{
  overflow: hidden;
  overflow-x:scroll;
}
#scroll-y{
  overflow: hidden;
  overflow-y:scroll;
}

#hidden{
  overflow: hidden;
}
              
            
!

JS

              
                
              
            
!
999px

Console