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


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


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.


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.


                <div id="area_product">
  <div id="sss_app">
    <h6>Soru 1</h6>
    <p>Cevap 1</p>
    <h6>Soru 2</h6>
    <p>Cevap 2</p>
    <h6>Soru 3</h6>
    <p>Cevap 3</p>
    <h6>Soru 4</h6>
    <p>Cevap 4</p>


                #area_product {
  position: relative;
  width: 400px;
  height: 180px;
  /*border: 1px dashed red;*/
  margin-bottom: 5px;
  padding: 10px;
  clear: both;

.plus {
  background: url( no-repeat 99% 50% #ccc;

.minus {
  background: url( no-repeat 99% 50% #2a97d0;
  color: white;
  -moz-box-shadow: 0px 0px 2px 2px #ccc;
  -webkit-box-shadow: 0px 0px 2px 2px #ccc;
  box-shadow: 0px 0px 2px 2px #ccc;

#sss_app>h6 {
  cursor: pointer;
  border-radius: 4px;
  padding: 4px 6px 4px 8px;
  width: 200px;
  margin: 0px;
  border-bottom: 1px solid #ffffff;
  font-size: 14px;


                $(document).ready(function() {

  //Tüm cevaplar kapatılıyor
  $('#sss_app p').hide();

  //artı iconu tüm sorulara ekleniyor
  $('#sss_app h6').addClass('plus');

  //Her elemanın peşpeşe iki tıklama için işlem başlatılıyor
  $('#sss_app h6').on({
    click: function() { //Birinci tıklamada

      //Bu tıklamayı bir değişkene aktarıyorum
      var link = $(this);

      //.plus sınıfı (CSS) kaldırılıyor
      //.minus sınıfı ekleniyor

      //Tıklanan sorudan sonra gelen "p" etiketi açılıyor
      //İkinci tıklama ile de kapanıyor
      $(this).next('p').slideToggle("fast", function() {
        //Eğer 'p' açık değilse '-' '+' işaret değişimi yapıyoruz
        if ($(this).is(':not(:visible)')) {
          //Eksi ve artı işareti değiştiriliyor