Bootstrap news page template
Here is a basic Bootstrap news page template:
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>News Page</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">News Page</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact</a>
</li>
</ul>
</div>
</nav>
<main>
<div class="container">
<div class="row">
<div class="col-md-8">
<h1>Latest News</h1>
<ul class="list-group">
<li class="list-group-item">
<h5>News Title 1</h5>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet nulla auctor, vestibulum magna sed, convallis ex.</p>
</li>
<li class="list-group-item">
<h5>News Title 2</h5>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet nulla auctor, vestibulum magna sed, convallis ex.</p>
</li>
<li class="list-group-item">
<h5>News Title 3</h5>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet nulla auctor, vestibulum magna sed, convallis ex.</p>
</li>
</ul>
</div>
<div class="col-md-4">
<h2>Popular News</h2>
<ul class="list-group">
<li class="list-group-item">
<h5>Popular News Title 1</h5>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet nulla auctor, vestibulum magna sed, convallis ex.</p>
</li>
<li class="list-group-item">
<h5>Popular News Title 2</h5>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet nulla auctor, vestibulum magna sed, convallis ex.</p>
</li>
</ul>
</div>
</div>
</div>
</main>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</body>
</html>
CSS (in styles.css file)
body {
font-family: Arial, sans-serif;
}
.container {
max-width: 1200px;
margin: 40px auto;
padding: 20px;
background-color: #f9f9f9;
border: 1px solid #ddd;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.row {
margin-bottom: 20px;
}
.list-group {
list-style: none;
padding: 0;
margin: 0;
}
.list-group-item {
padding: 10px;
border-bottom: 1px solid #ddd;
}
.list-group-item:last-child {
border-bottom: none;
}
.list-group-item h5 {
font-weight: bold;
margin-top: 0;
}
.list-group-item p {
font-size: 14px;
color: #666;
}
.popular-news {
margin-top: 20px;
}
.popular-news h2 {
font-weight: bold;
margin-top: 0;
}
This template uses Bootstrap's grid system to create a two-column layout, with the main content area taking up most of the width and a smaller column on the right for popular news. The news items are displayed in a list group with a simple design.
You can customize the template by adding your own content, images, and styles. You can also modify the HTML and CSS to fit your specific needs.
Note: This is just a basic template, and you may want to add more features such as pagination, filtering, and sorting to your news page.