cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              <div class="sliderlistbox"><section>
<div><input id="section1item1" checked="checked" name="menu" type="radio" />
<label class="sectionlistarrow" for="section1item1">amazonで購入</label>
<div class="slideritem">
<div class="sliderlistcontainer">
<div class="sliderlistcontainerone">ここにamazonの広告を張り付ける①</div>
<div class="sliderlistcontainerone">ここにamazonの広告を張り付ける②</div>
</div>
</div>
</div>
</section><section>
<div><input id="section1item2" name="menu" type="radio" />
<label class="sectionlistarrow" for="section1item2">楽天で購入</label>
<div class="slideritem">
<div class="slideritem">
<div class="sliderlistcontainer">
<div class="sliderlistcontainerone">ここに楽天の広告を張り付ける①</div>
<div class="sliderlistcontainerone">ここに楽天の広告を張り付ける②</div>
</div>
</div>
</div>
</section>
<section>
<div><input id="section1item3" name="menu" type="radio" />
<label class="sectionlistarrow" for="section1item3">推奨の関連商品</label>
<div class="slideritem">関連商品の説明</div>
</div>
</section>
</div>
            
          
!
            
              .sliderlistbox {
  width: 98%;
  border: 2px solid #F08080;
}

.sliderlistbox [type='radio'] {
  display: none;
}

.sliderlistbox label {
  display: block;
  padding: 5px 20px;
  background-color: #FFB6C1;
  font-size: 1.5em;
  font-weight: bold;
	line-height: 50px;
  cursor: pointer;
  -webkit-transition: .3s;
	transition: .3s;
}

.sectionlistarrow{
  position: relative;
  display: inline-block;
  padding: 0 0 0 16px;
  color: #000;
  vertical-align: middle;
  text-decoration: none;
  font-size: 15px;
}

.sectionlistarrow::before {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  content: "";
  vertical-align: middle;
  left: 12px;
  box-sizing: border-box;
  width: 5px;
  height: 5px;
  border: 5px solid transparent;
  border-left: 5px solid #000080;
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}
.sectionlistarrow::after {
  position: absolute;
  bottom: 0;
  margin: auto;
  content: "";
  vertical-align: middle;
  top: 7px;
  left: 3px;
  border: 0 solid transparent;
  border-left: 3px solid #000080;
  border-radius: 0 0 0 10px;
  width: 8px;
  height: 8px;
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}

.sliderlistbox label:hover {
  background-color: #FFDEAD;
}

.sliderlistbox [type='radio']:checked + label {
  background-color: #FFDEAD;
}

.sliderlistbox [type='radio'] + label + .slideritem {
  height: 0px;
  overflow: hidden;
  transition: .3s;
}

.sliderlistbox [type='radio']:checked + label + .slideritem {
  height: auto;
  transition: .3s;
  padding: 5px 10px;
}

.sliderlistcontainer{
  display: flex;
}
.sliderlistcontainerone{
  max-width: 300px;
  margin: 3px;
}

.sliderlistbox > section > div > br {
  display: none;
}

.sliderlistbox > section > div > p {
  display: none;
}

            
          
!
999px
Loading ..................

Console