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.

              <nav class="page-group">
    <!-- toggler -->
    <button type="button" class="page-group__toggle visible-xsmall js-show-page-group-list">Contents</button>

    <ol class="page-group__list no-margin js-contents">
        <li class="page-group__item">
            <span class="page-group__text page-group__text--no-link">
                Apply for or renew a Blue Badge in Scotland
        <li class="page-group__item">
            <a data-gtm="guide-p1" class="page-group__text page-group__text--link" href="#">
                What is the Blue Badge scheme?
        <li class="page-group__item">
            <a data-gtm="guide-p2" class="page-group__text page-group__text--link" href="#">
                Eligibility – who can have one?
        <li class="page-group__item">
            <a data-gtm="guide-p3" class="page-group__text page-group__text--link" href="#">
                Using your Blue Badge
        <li class="page-group__item">
            <a data-gtm="guide-p4" class="page-group__text page-group__text--link" href="#">
                Misuse of badges

    <p class="page-group__location visible-xsmall">
            Section <strong>1</strong> of 5
              var classButtonOpen = 'page-group__toggle--open',
    classListExpanded = 'page-group__list--expanded',
    isMobile = $('.page-group__toggle').is(':visible');

function PageGroup() {
    this.button = $('.js-show-page-group-list');
    this.list = this.button.next('.page-group__list');
    var pgroup = this;

    this.button.on('click', function() {
        if ( $(this).hasClass(classButtonOpen) ) {
        } else {

PageGroup.prototype.open = function() {

PageGroup.prototype.close = function() {

new PageGroup();
Loading ..................