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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

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

Packages

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.

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

              
                <html>
  <head></head>
<body>
<div class="report-body">Something</div>
<div class="appendices">
  <div class="appendix appendix-gallery gallery" id="appendix-2881892">
    <ol>
      <li>
        <img alt="Escher" src="https://via.placeholder.com/800x560">
        <p class="caption">
        Escher
        </p>
      </li>
      <li>
        <img alt="Zeiffeltower" src="https://via.placeholder.com/800x560">
        <p class="caption">
        ZEiffelTower
        </p>
      </li>
      <li>
        <img alt="Zlosangeles" src="https://via.placeholder.com/800x560">
        <p class="caption">
        ZLosAngeles
        </p>
      </li>
      <li>
        <img alt="Dog" src="https://via.placeholder.com/800x560">
        <p class="caption">
        Dog
        </p>
      </li>
      <li>
        <img alt="Peep" src="https://via.placeholder.com/800x560">
        <p class="caption">
        Peep
        </p>
      </li>
      <li>
        <img alt="Pom" src="https://via.placeholder.com/800x560">
        <p class="caption">
        Pom
        </p>
      </li>
      <li>
        <img alt="Chicken" src="https://via.placeholder.com/800x560">
        <p class="caption">
        Chicken
        </p>
      </li>
      <li>
        <img alt="Cats" src="https://via.placeholder.com/800x560">
        <p class="caption">
        Cats
        </p>
      </li>
      <li>
        <img alt="Crockpot" src="https://via.placeholder.com/800x560">
        <p class="caption">
        CrockPot
        </p>
      </li>
      <li>
        <img alt="Guilin" src="https://via.placeholder.com/800x560">
        <p class="caption">
        Guilin
        </p>
      </li>
      <li>
        <img alt="Lion" src="https://via.placeholder.com/800x560">
        <p class="caption">
        Lion
        </p>
      </li>
      <li>
        <img alt="Meal" src="https://via.placeholder.com/800x560">
        <p class="caption">
        Meal
        </p>
      </li>
      <li>
        <img alt="Norway" src="https://via.placeholder.com/800x560">
        <p class="caption">
        Norway
        </p>
      </li>
      <li>
        <img alt="Piggies" src="https://via.placeholder.com/800x560">
        <p class="caption">
        Piggies
        </p>
      </li>
      <li>
        <img alt="Trees" src="https://via.placeholder.com/800x560">
        <p class="caption">
        Trees
        </p>
      </li>
      <li>
        <img alt="Ybasket" src="https://via.placeholder.com/800x560">
        <p class="caption">
        YBasket
        </p>
      </li>
      <li>
        <img alt="Ycathedral" src="https://via.placeholder.com/800x560">
        <p class="caption">
        YCathedral
        </p>
      </li>
      <li>
        <img alt="Z_sydney_opera_house" src="https://via.placeholder.com/800x560">
        <p class="caption">Z Sydney Opera House</p>
</li>
</ol>
</div>

<div class='appendix appendix-pdf pdf' id='appendix-2881893'>

<ol>
<li data-named-destination='nd_appendix_file_24825798'>
    <a href="https://via.placeholder.com/800x560" id="filelink_24825680" target="_blank"><img alt="Figure_3_flood_zone_map" src="https://via.placeholder.com/800x560"></a>
        <p class="caption">Figure_3_Flood_Zone_Map.pdf</p>
      </li>
      <li>
        <a href="https://via.placeholder.com/800x560" id="filelink_24825681" target="_blank"><img alt="Ludwigscorner" src="https://via.placeholder.com/800x560"></a>
        <p class="caption">LudwigsCorner.pdf</p>
      </li>
      <li>
        <a href="https://via.placeholder.com/800x560" id="filelink_24825682" target="_blank"><img alt="Map" src="https://via.placeholder.com/800x560"></a>
        <p class="caption">Map.pdf</p>
      </li>
      <li>
        <a href="https://via.placeholder.com/800x560" id="filelink_24825683" target="_blank"><img alt="Rte724" src="https://via.placeholder.com/800x560"></a>
        <p class="caption">Rte724.pdf</p>
      </li>
    </ol>
  </div>
  
</div>
</body>
</html>
              
            
!

CSS

              
                
@page {
 size:Letter;
 margin:1in
}

@page body-content {
 margin:1.75in 1in 1in;
 @top {
  content:flow(header-box)
 }
 @bottom {
  content:flow(footer-box)
 }
 @footnotes {
  border-top:1px solid #999;
  padding-top:8pt;
  margin-top:10pt;
  font-size:9pt
 }
}

@page gallery {
 margin:0.35in
}

.header-box,
.footer-box {
 display:table;
 width:100%
}
/*
.header-box {
 flow:static(header-box)
}
.footer-box {
 flow:static(footer-box)
}*/
.header-left,
.header-center,
.header-right,
.footer-left,
.footer-center,
.footer-right {
 width:33.33%;
 display:table-cell;
 display:inline-block
}
.header-left .footer-left {
 text-align:left
}
.header-center,
.footer-center {
 text-align:center
}
.header-right,
.footer-right {
 text-align:right
}
* {
 box-sizing:border-box
}
body {
 color:#000000;
 font-family:Arial,Helvetica,"DejaVu Sans",sans-serif;
 font-size:10pt;
 padding:0
}
.letterhead-content *,
.cover-letter-content *,
.report-summary *,
.section-content * {
 -webkit-hyphens:none;
 -ms-hyphens:none;
 hyphens:none;
 line-height:1.4 !important
}
.report-tag.current-page {
 content:counter(page)
}
.report-tag.total-pages {
 content:counter(pages)
}
img {
 max-width:100%
}
sup,
sub {
 vertical-align:baseline;
 position:relative;
 top:-0.4em
}
sub {
 top:0.4em
}
ul.unstyled {
 list-style:none;
 margin:0;
 padding:0
}
h1,
h2,
h3,
h4,
h5,
h6 {
 font-size:10pt
}
p,
li,
td {
 orphans:3;
 widows:3
}
.report .quire-section-link,
.report .quire-section-link * {
 color:blue !important;
 text-decoration:underline !important
}
/*
.title-page {
 prince-bookmark-level:1;
 prince-bookmark-label:"Title Page"
}
.cover-letter {
 prince-bookmark-level:1;
 prince-bookmark-label:"Cover Letter"
}
.section .title,
.project-summary h2,
.immediate-repair-cost h2,
.capital-reserve-schedule h2,
.flysheet h1,
.fmac-cost-table-section h2 {
 prince-bookmark-level:1
}
.indent-level-1 .title,
.indent-level-1.no-number.in-toc .title {
 prince-bookmark-level:2
}
.indent-level-1.no-number .title {
 prince-bookmark-level:none
}
.indent-level-2 .title,
.indent-level-2.no-number.in-toc .title {
 prince-bookmark-level:3
}
.indent-level-2.no-number .title {
 prince-bookmark-level:none
}
.indent-level-3 .title,
.indent-level-3.no-number.in-toc .title {
 prince-bookmark-level:4
}
.indent-level-3.no-number .title {
 prince-bookmark-level:none
}
.indent-level-4 .title,
.indent-level-4.no-number.in-toc .title {
 prince-bookmark-level:5
}
.indent-level-4.no-number .title {
 prince-bookmark-level:none
}
.indent-level-5 .title,
.indent-level-5.no-number.in-toc .title {
 prince-bookmark-level:6
}
.indent-level-5.no-number .title {
 prince-bookmark-level:none
}
.indent-level-6 .title,
.indent-level-6.no-number.in-toc .title {
 prince-bookmark-level:7
}
.indent-level-6.no-number .title {
 prince-bookmark-level:none
}
.indent-level-7 .title,
.indent-level-7.no-number.in-toc .title {
 prince-bookmark-level:8
}
.indent-level-7.no-number .title {
 prince-bookmark-level:none
}
.indent-level-8 .title,
.indent-level-8.no-number.in-toc .title {
 prince-bookmark-level:9
}
.indent-level-8.no-number .title {
 prince-bookmark-level:none
}
.indent-level-9 .title,
.indent-level-9.no-number.in-toc .title {
 prince-bookmark-level:10
}
.indent-level-9.no-number .title {
 prince-bookmark-level:none
}
.indent-level-10 .title,
.indent-level-10.no-number.in-toc .title {
 prince-bookmark-level:11
}
.indent-level-10.no-number .title {
 prince-bookmark-level:none
}
.section.no-number:not(.in-toc) .title,
.image-section .title,
.info-table-container .title,
.cost-summary-section .title {
 prince-bookmark-level:none
}
*/
table {
 border-collapse:collapse;
 width:100% !important;
 height:auto !important
}
table th,
table td {
 text-align:left
}
table p {
 margin:0;
 text-align:inherit
}
tr {
 page-break-inside:avoid
}
table.layout {
 width:auto
}
table.layout td {
 border:0;
 padding:0
}
table.info-table {
 table-layout:fixed
}
table.info-table thead>tr.column_sizing {
 height:0;
 padding:0;
 border:none
}
table.info-table thead>tr.column_sizing th {
 height:0;
 padding:0;
 border:none
}
table.info-table thead[data-show-headers="false"]>tr.column_headers {
 display:none
}
table.info-table thead>tr.smart_table_header>th {
 text-align:center;
 background-color:#f3f3f3
}
table.info-table td {
 overflow-wrap:break-word
}
table.info-table td.q_type_boolean {
 vertical-align:middle
}
table.info-table td.q_type_boolean .fa-square-o {
 display:none
}
table.info-table td.q_type_text {
 white-space:pre-line
}
.text-center {
 text-align:center
}
.text-left {
 text-align:left
}
.text-right {
 text-align:right
}
.text-justify {
 text-align:justify
}

.title-page,
.letterhead,
.cover-letter,
.report-body,
.report-summary,
.package-summary,
.report-cost-summary,
.immediate-repair-cost,
.capital-reserve-schedule,
.flysheet,
.gallery,
.toc,
.toa,
.fmac-section-cost-table,
.fannie-mae-cost-table-report {
 position:relative
}

.toc,
.toa {
 page:toc;
 page-break-after:always;
 text-align:center
}
.toc h1,
.toa h1 {
 font-size:14pt;
 prince-bookmark-level:none;
 text-align:center;
 text-transform:uppercase
}
.toc ul,
.toa ul {
 list-style:none;
 margin:0;
 padding:0
}
.toc ul li,
.toa ul li {
 margin-bottom:.1in;
 text-align:left
}
.toc ul ul,
.toa ul ul {
 margin:.1in 0 0 0.1in
}
.toc a,
.toa a {
 display:block;
 color:#000
}
.toc a:link,
.toc a:visited,
.toa a:link,
.toa a:visited {
 text-decoration:none
}
/*.toc a:after {
 content:leader(". ") target-counter(attr(href), page)
}*/

.report-body {
 counter-reset:page 1 pages 1;
 page:body-content;
 page-break-after:always
}
.section .section-title,
.indent-level-0 .section-title {
 text-transform:uppercase
}
.section-title {
 margin-bottom:10px;
 margin-top:10px
}
.section,
.section p {
 text-align:justify
}
.section .title {
 font-size:10pt;
 font-weight:bold;
 text-align:left;
 page-break-after:avoid
}
.section.title-only,
.untitled-section-anchor {
 page-break-after:avoid
}
.section.section-flysheet {
 page-break-before:always;
 page-break-after:always
}
.section.section-flysheet h2,
.section.section-flysheet h3,
.section.section-flysheet h4 {
 font-size:30pt;
 text-align:center;
 margin-top:4in
}
.force-new-page {
 page-break-before:always !important
}
.page-break {
 margin:0;
 page-break-after:always
}
.page-break-manual {
 display:block;
 page-break-after:always
}
.image-section .title {
 page-break-after:avoid
}
ol.image-section-list {
 list-style-type:none;
 margin:0;
 padding:0;
 overflow:hidden
}
ol.image-section-list li {
 text-align:center;
 width:50%;
 float:left;
 padding:5px
}
ol.image-section-list li:nth-child(2n+3) {
 clear:left
}
ol.image-section-list li .caption {
 page-break-before:avoid
}
section.pdf-link-section {
 page-break-before:always;
 page-break-after:always
}
ol.appendices {
 counter-reset:c1;
 list-style:none outside none;
 margin:0;
 padding:0
}
ol.appendices>li {
 counter-increment:c1
}
.flysheet {
 page-break-after:always;
 width:100%
}
.flysheet h1 {
 font-size:30pt;
 prince-bookmark-level:1;
 text-align:center;
 margin-top:4in
}
.flysheet h1 span::before {
 content:"Appendix " counter(c1) ": "
}
.appendix {
 page-break-after:always
}
.appendix ol {
 counter-reset:c2;
 list-style:none outside none;
 margin:0;
 padding:0;
 page:gallery;
 overflow:hidden
}
.appendix ol>li {
 counter-increment:c2;
 height:5in;
 padding-bottom:0.25in;
 text-align:center
}
.appendix ol>li:before {
 color:#999999;
 content:counter(c2,decimal);
 display:block;
 margin-bottom:5px;
 text-align:center
}
.appendix ol>li img {
 max-height:4in;
 max-width:6in
}
.appendix ol>li .caption {
 margin:8px auto 6px;
 font-size:9.75pt !important;
 line-height:1.4;
 max-width:6in;
 page-break-before:avoid
}
.appendix-pdf>ol>li {
 page-break-after:always
}
span[style*="008001"] {
 color:inherit !important
}

table tr.spacer {
 height:15px
}
.table {
 width:100%;
 margin-bottom:20px
}
.table>thead>tr>th,
.table>thead>tr>td,
.table>tbody>tr>th,
.table>tbody>tr>td,
.table>tfoot>tr>th,
.table>tfoot>tr>td {
 padding:8px;
 line-height:1.428571429;
 vertical-align:top;
 border-top:1px solid #dddddd
}
.table>thead>tr>th {
 vertical-align:bottom
}
.table>caption+thead>tr:first-child>th,
.table>caption+thead>tr:first-child>td,
.table>colgroup+thead>tr:first-child>th,
.table>colgroup+thead>tr:first-child>td {
 border-top:0
}
.table>tbody+tbody {
 border-top:2px solid #dddddd
}
.table .table {
 background-color:white
}
.table-bordered {
 border:1px solid #dddddd
}
.table-bordered>thead>tr>th,
.table-bordered>thead>tr>td,
.table-bordered>tbody>tr>th,
.table-bordered>tbody>tr>td,
.table-bordered>tfoot>tr>th,
.table-bordered>tfoot>tr>td {
 border:1px solid #dddddd
}
.table-striped>tbody>tr:nth-child(odd)>td,
.table-striped>tbody>tr:nth-child(odd)>th {
 background-color:#f9f9f9
}
.table-hover>tbody>tr:hover>td,
.table-hover>tbody>tr:hover>th {
 background-color:whitesmoke
}
table col[class*="col-"] {
 float:none;
 display:table-column
}
table td[class*="col-"],
table th[class*="col-"] {
 float:none;
 display:table-cell
}
.table>thead>tr>td.active,
.table>thead>tr>th.active,
.table>thead>tr.active>td,
.table>thead>tr.active>th,
.table>tbody>tr>td.active,
.table>tbody>tr>th.active,
.table>tbody>tr.active>td,
.table>tbody>tr.active>th,
.table>tfoot>tr>td.active,
.table>tfoot>tr>th.active,
.table>tfoot>tr.active>td,
.table>tfoot>tr.active>th {
 background-color:whitesmoke
}
table.cost-summary td.empty::after {
 content:'-'
}
table.cost-summary .truncated {
 display:none
}
*[data-named-destination] {
 prince-pdf-destination:attr(data-named-destination)
}
.signature-report-tag.signature-not-inserted:before {
 content:attr(data-default-title)
}
.user-stamp {
 max-height:2in
}
.table-borderless,
.table-borderless th,
.table-borderless td {
 border:0
}
.cke_editable .table-borderless,
.cke_editable .table-borderless th,
.cke_editable .table-borderless td {
 border:1px dotted #ccc
}
.table-standard,
.table-compact {
 border:1px solid #000
}
.table-standard th,
.table-standard td {
 padding:6px
}
.table-standard th,
.table-standard thead td {
 background:#ccc
}
.table-compact th,
.table-compact thead td {
 background:#f0f0f0
}
.table-compact th,
.table-compact td {
 padding:3px
}

/* Gallery */

@page gallery {
  margin: 1in .5in;
  
  @top-center {
    content: element(header-box);
  }
  
  @bottom-center {
    content: element(footer-box);
  }
}
*/
/* Flysheets */
/*
@page flysheet {
  margin: 1in .5in;
  
  @top-center {
    content: element(header-box);
  }
  
  @bottom-center {
    content: element(intro-footer);
  }
}

.flysheet {
  page: flysheet;
}


.flysheet h1 {
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
  color: #B40610;
  font-size: 18pt;
  padding: 4px 0;
  text-transform: uppercase;
}

.flysheet h1:before {
  color: black;
  content: "APPENDIX " counter(c1, upper-alpha) ":";
  display: block;
  font-weight: bold;
  text-transform: uppercase;
}

/* Photo Gallery */

.appendix-gallery ol > li {
  float: left;
  height: 2.5in;
  margin-bottom: 4%;
  width: 48%;
}

.appendix-gallery ol > li:nth-child(odd){
  margin-right: 2%; 
}

.appendix-gallery ol>li:before {
  content: '';
  margin: 0;
}

.appendix-gallery ol>li img {
  max-width: 3in;
  max-height: 2in;
}

.appendix-gallery ol > li .caption {
  border: 1px solid #000;
  font-size: 10pt;
  font-style: italic;
  margin: 0;
  overflow: hidden;
  text-align: left;
  text-transform: uppercase;
}

.appendix-gallery ol > li .caption:before {
  background: rgb(182, 180, 167);
  border-right: 1px solid #000;
  color: #fff;
  content: "Photo #" counter(c2,decimal); 
  float: left;
  font-variant: small-caps;
  padding: 1px;
  text-align: center;
  width: 4em;
  margin-right: .25em;
}
/* Change the look */
:root {
    --color-background: #2A2A2E;
    --color-pageBox: #666;
    --color-paper: white;
    --color-marginBox: transparent;
    --margin-betweenPages: 0.125in;
}

/* To define how the book look on the screen: */
@media screen {
    body {
        background-color: var(--color-background);
    }

    .pagedjs_pages {
        display: flex;
        width: calc(var(--pagedjs-width) * 2);
        flex: 0;
        flex-wrap: wrap;
        margin: 0 auto;
    }

    .pagedjs_page {
        background-color: var(--color-paper);
        box-shadow: 0 0 0 1px var(--color-pageBox);
        margin: 0;
        flex-shrink: 0;
        flex-grow: 0;
        margin-top: var(--margin-betweenPages);
    }

    .pagedjs_first_page {
        margin-left: var(--pagedjs-width);
    }

    .pagedjs_page:last-of-type {
        margin-bottom: 10mm;
    }

    /* show the margin-box */

    .pagedjs_margin-top-left-corner-holder,
    .pagedjs_margin-top,
    .pagedjs_margin-top-left,
    .pagedjs_margin-top-center,
    .pagedjs_margin-top-right,
    .pagedjs_margin-top-right-corner-holder,
    .pagedjs_margin-bottom-left-corner-holder,
    .pagedjs_margin-bottom,
    .pagedjs_margin-bottom-left,
    .pagedjs_margin-bottom-center,
    .pagedjs_margin-bottom-right,
    .pagedjs_margin-bottom-right-corner-holder,
    .pagedjs_margin-right,
    .pagedjs_margin-right-top,
    .pagedjs_margin-right-middle,
    .pagedjs_margin-right-bottom,
    .pagedjs_margin-left,
    .pagedjs_margin-left-top,
    .pagedjs_margin-left-middle,
    .pagedjs_margin-left-bottom {
        box-shadow: 0 0 0 1px inset var(--color-marginBox);
    }

    /* uncomment this part for recto/verso book : ------------------------------------ */


    .pagedjs_pages {
        flex-direction: column;
        width: 100%;
    }

    .pagedjs_first_page {
        margin-left: 0;
    }

    .pagedjs_page {
        margin: 0 auto;
        margin-top: var(--margin-betweenPages);
    } 

    /*--------------------------------------------------------------------------------------*/
}


              
            
!

JS

              
                
              
            
!
999px

Console