Skip to content

Commit 4c1c1db

Browse files
committed
changed how padding is added to columns in sample 2. change id to class in sample 9
1 parent 4c2a638 commit 4c1c1db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

samples/sample2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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; }

samples/sample9.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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>
@@ -30,7 +30,7 @@
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);
@@ -58,7 +58,7 @@
5858

5959
<body>
6060
The 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>

0 commit comments

Comments
 (0)