File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 99 < meta name ="author " content ="Matt Wilson ">
1010 <!-- Date: 2008-07-12 -->
1111 < style >
12- .column p , . column h1 { padding : 5px ; }
12+ .column > * { padding : 5px ; }
1313
1414
1515 body { font-size : 9pt ; }
Original file line number Diff line number Diff line change 1515.page .header hr , .page .footer hr { width : 400px ; }
1616.page .footer { text-align : center; }
1717.page .footer span { position : absolute; bottom : 10px ; right : 10px ; }
18- # page_template { display : none; }
18+ . page_template { display : none; }
1919
2020.enclosure {border : 1px dashed black}
2121</ style >
3030 if ( $ ( '#newsletterContent' ) . contents ( ) . length > 0 ) {
3131 // when we need to add a new page, use a jq object for a template
3232 // or use a long HTML string, whatever your preference
33- $page = $ ( "# page_template" ) . clone ( ) . addClass ( "page" ) . css ( "display" , "block" ) ;
33+ $page = $ ( ". page_template:first " ) . clone ( ) . addClass ( "page" ) . css ( "display" , "block" ) ;
3434
3535 // fun stuff, like adding page numbers to the footer
3636 $page . find ( ".footer span" ) . append ( page ) ;
5858
5959< body >
6060The goal of this demo is to show how to columnize super long content over multiple mulit-column "pages".
61- < div id ="page_template ">
61+ < div class ="page_template ">
6262 < div class ='header '> This is a header< hr > </ div >
6363 < div class ='content '> </ div >
6464 < div class ='footer '> < hr > < span > Page: </ span > This is the footer.</ div >
You can’t perform that action at this time.
0 commit comments