Basic Layout
A book structure typically includes a cover, table of contents, chapters, and an index. Here’s a Bootstrap layout example:
<div class="container">
<header class="text-center py-5 bg-primary text-white">
<h1>My Book Title</h1>
<p>By Author Name</p>
</header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">Book Navigation</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="#introduction">Introduction</a></li>
<li class="nav-item"><a class="nav-link" href="#chapter1">Chapter 1</a></li>
<li class="nav-item"><a class="nav-link" href="#chapter2">Chapter 2</a></li>
</ul>
</div>
</div>
</nav>
<main class="mt-4">
<section id="introduction" class="py-3">
<h2>Introduction</h2>
<p>Welcome to this book. Here, we introduce the key concepts...</p>
</section>
<section id="chapter1" class="py-3">
<h2>Chapter 1: Getting Started</h2>
<p>This chapter covers the basics...</p>
</section>
<section id="chapter2" class="py-3">
<h2>Chapter 2: Advanced Concepts</h2>
<p>Diving deeper into the subject...</p>
</section>
</main>
<footer class="text-center py-4 bg-dark text-white">
<p>© 2025 Book Author. All rights reserved.</p>
</footer>
</div>