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="show-hide">
   <input type="checkbox" class="read-more-state" id="one" />
   <div class="read-more-wrap">
     <p>The stage is set for a diverse calendar of culture in Provence. You’re never too far away from enlightened things to do in the region, once you’ve exhausted all the activities to enjoy at La Verrière, of course. A myriad events characterise this culturally rich and active part of southern France, and at a micro level, the smattering of key events at La Verrière help everyone to grow, like the acorn of the blue oak, the estate’s nurturing symbol.</p>
     <p class="read-more-target">Enjoy concerts in the gardens during summer. Art exhibitions periodically showcase top local artists such as Eric Eishenger. Musicians in amongst the team occasionally share their talents and perform for the guests. Equally, the grand piano in the living room waits eagerly for any budding amateur or professional pianist to bring it to life. For those who are passionate about music, arrangements can also be made, with prior notice, to book local musicians for private concerts.
     
The abundant list below features an array of festivals, celebrations, fairs, fetes, events and sporting spectaculars, a feast for all the senses, as well as a glimpse into the kinds of activities taking place throughout the vineyard at various points in the year.

Plan your trip around some of these events, in combination with the assortment of day trips from La Verrière.
     </p>
   </div>
   <label for="one" class="read-more-trigger"></label>
 </div>
              
            
!

CSS

              
                .read-more-state {
   display: none;
 }
 
 .read-more-target {
   opacity: 0;
   max-height: 0;
   font-size: 0;
 }
 
 .read-more-state:checked ~ .read-more-wrap .read-more-target {
   opacity: 1;
   font-size: inherit;
   max-height: 999em;
 }
 
 .read-more-state ~ .read-more-trigger:before {
   content: 'READ MORE';
 }

 .read-more-state:checked ~ .read-more-trigger:before {
   content: 'READ LESS';
 }
 
 .read-more-trigger {
   cursor: pointer;
   display: inline-block;
   padding: 0 .9em;
   color: #156;
  background-color: #fff;
   font-family: raleway;
   font-size: 0.8em;
   font-weight: bold;
   letter-spacing: 3px;
   line-height: 3;
   border: 2px solid #156;
   border-radius: .50em;
 }
 .read-more-trigger:hover {
   background:#156;
   color:white;
 }
              
            
!

JS

              
                
              
            
!
999px

Console