content logo

Bootstrap Headers:

Bootstrap Ticker Tape Text

The header is one of the most important features necessary in every website. In fact, the first part of the website that the new visitors pay attention to is the header. According to the statistics provided by Google, 90% of the new visitors decide whether they want to stay in the site or leave it in the first 60 seconds. That is only 1 minute to decide for the entire website which is definitely not enough. When you consider this fact, the role of the header becomes more apparent. The header usually contains the links to important pages and the major information is provided in this area of the site. Put simply, this is the go-to place for new users. For this reason, you should try your best to design an intuitive, beautiful and responsive Bootstrap header for your website.

The more unique your header is, the higher the chance of having people stay in your website. A really cool idea for a header is to have a tape text style header that states the new posts or other important information in your website similar to a news channel. The code below is exactly that; a Bootstrap header with repeat option. Since it is a repeating header, any information you put in the field will cycle through as long as the user stays in the page. Also, it is worth mentioning that the text in this Bootstrap navigation bar pauses when you hover your mouse over it.

#

Bootstrap Header

#

Bootstrap Navigation Bar

#

Repeating Header

#

Bootstrap Header with Repeat

<!-- This script got from frontendfreecode.com -->
<main>
    <div class="container-fluid">
        <div class="row no-gutters">
            <div class="col-md-12">
                <div class="d-flex justify-content-between align-items-center breaking-news bg-white">
                    <div class="d-flex flex-row flex-grow-1 flex-fill justify-content-center bg-danger py-2 text-white px-1 news"><span class="d-flex align-items-center">Read this</span></div>
                    <marquee class="news-scroll" behavior="scroll" direction="left" onmouseover="this.stop();" onmouseout="this.start();">
                        <a href="#">Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </a>
                        <span class="dot"></span>
                        <a href="#">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut </a>
                        <span class="dot"></span>
                        <a href="#">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut </a>
                    </marquee>
                </div>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="row text-md-center">
            <div class="col">
                <div class="col-auto">
                    <h1 class="text-center">Bootstrap 4</h1>
                </div>
                <div class="col"></div>
            </div>
        </div>
    </div>
</main><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
body {
  background: #eee;
  margin: 0;
  padding: 0;
}
.news {
  width: 160px;
}
.news-scroll a {
  text-decoration: none;
}
.dot {
  height: 6px;
  width: 6px;
  margin-left: 3px;
  margin-right: 3px;
  margin-top: 2px !important;
  background-color: rgb(207, 23, 23);
  border-radius: 50%;
  display: inline-block;
}
/* Custom */
main {
  background-color: #111;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}
.container-fluid {
  padding: 0;
}
.container {
  color: white;
}
marquee a {
  color: black;
}
<link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css'>
<script src='https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css'>
<script src='https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
<style>
body {
  background: #eee;
  margin: 0;
  padding: 0;
}
.news {
  width: 160px;
}
.news-scroll a {
  text-decoration: none;
}
.dot {
  height: 6px;
  width: 6px;
  margin-left: 3px;
  margin-right: 3px;
  margin-top: 2px !important;
  background-color: rgb(207, 23, 23);
  border-radius: 50%;
  display: inline-block;
}
/* Custom */
main {
  background-color: #111;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}
.container-fluid {
  padding: 0;
}
.container {
  color: white;
}
marquee a {
  color: black;
}
</style>

</head>
<body>
<main>
    <div class="container-fluid">
        <div class="row no-gutters">
            <div class="col-md-12">
                <div class="d-flex justify-content-between align-items-center breaking-news bg-white">
                    <div class="d-flex flex-row flex-grow-1 flex-fill justify-content-center bg-danger py-2 text-white px-1 news"><span class="d-flex align-items-center">Read this</span></div>
                    <marquee class="news-scroll" behavior="scroll" direction="left" onmouseover="this.stop();" onmouseout="this.start();">
                        <a href="#">Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </a>
                        <span class="dot"></span>
                        <a href="#">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut </a>
                        <span class="dot"></span>
                        <a href="#">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut </a>
                    </marquee>
                </div>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="row text-md-center">
            <div class="col">
                <div class="col-auto">
                    <h1 class="text-center">Bootstrap 4</h1>
                </div>
                <div class="col"></div>
            </div>
        </div>
    </div>
</main><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview