Bootstrap news class

Here is an example of a Bootstrap news class:

.news {
  background-color: #f9f9f9;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.news.news-header {
  background-color: #333;
  color: #fff;
  padding: 10px;
  border-bottom: 1px solid #333;
}

.news.news-header h2 {
  font-size: 18px;
  margin-top: 0;
}

.news.news-body {
  padding: 20px;
}

.news.news-body p {
  font-size: 16px;
  margin-bottom: 20px;
}

.news.news-footer {
  background-color: #333;
  color: #fff;
  padding: 10px;
  border-top: 1px solid #333;
}

.news.news-footer a {
  color: #fff;
  text-decoration: none;
}

.news.news-footer a:hover {
  color: #ccc;
}

This CSS defines a basic news class that includes the following elements:

You can customize this class to fit your specific needs by modifying the CSS properties and values. For example, you could change the background color, font sizes, and padding to match your desired design.

Here is an example of how you could use this class in HTML:

<div class="news">
  <div class="news-header">
    <h2>Breaking News: New Study Reveals...</h2>
  </div>
  <div class="news-body">
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet nulla auctor, vestibulum magna sed, convallis ex.</p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet nulla auctor, vestibulum magna sed, convallis ex.</p>
  </div>
  <div class="news-footer">
    <a rel="nofollow" target="_blank" href="#">Read More</a>
  </div>
</div>

This HTML code uses the .news class to create a news article with a header, body, and footer. The header has a title, the body has two paragraphs of text, and the footer has a link to read more.