Skip to content

Commit c074d70

Browse files
center content
1 parent aa352b4 commit c074d70

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+148
-134
lines changed

docs/nature-inspired/acknowledgments.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
9-
<body onload="prettyPrint()"><!-- Start Header -->
9+
<body onload="prettyPrint()"><div class="container"><!-- Start Header -->
1010
<center>
1111
<h1>Clever Algorithms: Nature-Inspired Programming Recipes</h1>
1212
<em>A book by Jason Brownlee</em>
@@ -75,5 +75,5 @@ <h1><a name='acknowledgments'>Acknowledgments</a></h1>
7575
<!-- generate math images from latex math snippets -->
7676
<script type="text/javascript" src="https://mathcache.s3.amazonaws.com/replacemath.js"></script>
7777
<script type="text/javascript">replaceMath(document.body);</script>
78-
</body>
78+
</div></body>
7979
</html>

docs/nature-inspired/advanced.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
9-
<body onload="prettyPrint()"><!-- Start Header -->
9+
<body onload="prettyPrint()"><div class="container"><!-- Start Header -->
1010
<center>
1111
<h1>Clever Algorithms: Nature-Inspired Programming Recipes</h1>
1212
<em>A book by Jason Brownlee</em>
@@ -60,5 +60,5 @@ <h3>Advanced Topics</h3>
6060
<!-- generate math images from latex math snippets -->
6161
<script type="text/javascript" src="https://mathcache.s3.amazonaws.com/replacemath.js"></script>
6262
<script type="text/javascript">replaceMath(document.body);</script>
63-
</body>
63+
</div></body>
6464
</html>

docs/nature-inspired/advanced/new_algorithms.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
9-
<body onload="prettyPrint()"><!-- Start Header -->
9+
<body onload="prettyPrint()"><div class="container"><!-- Start Header -->
1010
<center>
1111
<h1>Clever Algorithms: Nature-Inspired Programming Recipes</h1>
1212
<em>A book by Jason Brownlee</em>
@@ -377,5 +377,5 @@ <h2>Bibliography</h2>
377377
<!-- generate math images from latex math snippets -->
378378
<script type="text/javascript" src="https://mathcache.s3.amazonaws.com/replacemath.js"></script>
379379
<script type="text/javascript">replaceMath(document.body);</script>
380-
</body>
380+
</div></body>
381381
</html>

docs/nature-inspired/advanced/paradigms.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
9-
<body onload="prettyPrint()"><!-- Start Header -->
9+
<body onload="prettyPrint()"><div class="container"><!-- Start Header -->
1010
<center>
1111
<h1>Clever Algorithms: Nature-Inspired Programming Recipes</h1>
1212
<em>A book by Jason Brownlee</em>
@@ -454,5 +454,5 @@ <h2>Bibliography</h2>
454454
<!-- generate math images from latex math snippets -->
455455
<script type="text/javascript" src="https://mathcache.s3.amazonaws.com/replacemath.js"></script>
456456
<script type="text/javascript">replaceMath(document.body);</script>
457-
</body>
457+
</div></body>
458458
</html>

docs/nature-inspired/advanced/problem_solving.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
9-
<body onload="prettyPrint()"><!-- Start Header -->
9+
<body onload="prettyPrint()"><div class="container"><!-- Start Header -->
1010
<center>
1111
<h1>Clever Algorithms: Nature-Inspired Programming Recipes</h1>
1212
<em>A book by Jason Brownlee</em>
@@ -469,5 +469,5 @@ <h2>Bibliography</h2>
469469
<!-- generate math images from latex math snippets -->
470470
<script type="text/javascript" src="https://mathcache.s3.amazonaws.com/replacemath.js"></script>
471471
<script type="text/javascript">replaceMath(document.body);</script>
472-
</body>
472+
</div></body>
473473
</html>

docs/nature-inspired/advanced/racing_algorithms.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
9-
<body onload="prettyPrint()"><!-- Start Header -->
9+
<body onload="prettyPrint()"><div class="container"><!-- Start Header -->
1010
<center>
1111
<h1>Clever Algorithms: Nature-Inspired Programming Recipes</h1>
1212
<em>A book by Jason Brownlee</em>
@@ -321,5 +321,5 @@ <h2>Bibliography</h2>
321321
<!-- generate math images from latex math snippets -->
322322
<script type="text/javascript" src="https://mathcache.s3.amazonaws.com/replacemath.js"></script>
323323
<script type="text/javascript">replaceMath(document.body);</script>
324-
</body>
324+
</div></body>
325325
</html>

docs/nature-inspired/advanced/testing_algorithms.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
9-
<body onload="prettyPrint()"><!-- Start Header -->
9+
<body onload="prettyPrint()"><div class="container"><!-- Start Header -->
1010
<center>
1111
<h1>Clever Algorithms: Nature-Inspired Programming Recipes</h1>
1212
<em>A book by Jason Brownlee</em>
@@ -237,5 +237,5 @@ <h2>Bibliography</h2>
237237
<!-- generate math images from latex math snippets -->
238238
<script type="text/javascript" src="https://mathcache.s3.amazonaws.com/replacemath.js"></script>
239239
<script type="text/javascript">replaceMath(document.body);</script>
240-
</body>
240+
</div></body>
241241
</html>

docs/nature-inspired/advanced/visualizing_algorithms.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
9-
<body onload="prettyPrint()"><!-- Start Header -->
9+
<body onload="prettyPrint()"><div class="container"><!-- Start Header -->
1010
<center>
1111
<h1>Clever Algorithms: Nature-Inspired Programming Recipes</h1>
1212
<em>A book by Jason Brownlee</em>
@@ -370,5 +370,5 @@ <h2>Bibliography</h2>
370370
<!-- generate math images from latex math snippets -->
371371
<script type="text/javascript" src="https://mathcache.s3.amazonaws.com/replacemath.js"></script>
372372
<script type="text/javascript">replaceMath(document.body);</script>
373-
</body>
373+
</div></body>
374374
</html>

docs/nature-inspired/appendix1.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<script type="text/javascript" src="https://cleveralgorithms.com/nature-inspired/prettify.js"></script>
77
</head>
88
<!-- call to display ruby source nicely -->
9-
<body onload="prettyPrint()"><!-- Start Header -->
9+
<body onload="prettyPrint()"><div class="container"><!-- Start Header -->
1010
<center>
1111
<h1>Clever Algorithms: Nature-Inspired Programming Recipes</h1>
1212
<em>A book by Jason Brownlee</em>
@@ -372,5 +372,5 @@ <h2>Bibliography</h2>
372372
<!-- generate math images from latex math snippets -->
373373
<script type="text/javascript" src="https://mathcache.s3.amazonaws.com/replacemath.js"></script>
374374
<script type="text/javascript">replaceMath(document.body);</script>
375-
</body>
375+
</div></body>
376376
</html>

docs/nature-inspired/clever.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11

2+
body {
3+
margin: 0; /* Remove default margin */
4+
padding: 0; /* Remove default padding */
5+
}
6+
7+
.container {
8+
width: 880px; /* Set the width of your content */
9+
max-width: 100%; /* Ensures responsiveness for smaller screens */
10+
margin: 0 auto; /* Center the container horizontally */
11+
padding: 20px; /* Optional: Add some padding if needed */
12+
box-sizing: border-box; /* Ensure padding doesn't affect width */
13+
}
14+
15+
216
/* centre and bold captions for code listings */
317
.caption {
418
text-align: center;

0 commit comments

Comments
 (0)