Style navigation tabs inside the Bootstrap 4 card header

To style navigation tab inside the card header in Bootstrap 4, use the .card-header-tabs and create navigation tabs like the below example −

The following is an example to style navigation tabs inside the Bootstrap 4 card header −


Live Demo

<!DOCTYPE html>
<html lang="en">
    <title>Bootstrap Example</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="">
    <script src=""></script>
    <script src=""></script>

  <div class="container">
    <div class="card">
      <div class="card-header">
        <ul class="nav nav-tabs card-header-tabs">
          <li class="nav-item">
            <a class="nav-link active" href="#">Eclipse IDE</a>
          <li class="nav-item">
            <a class="nav-link" href="#">NetBeans IDE</a>
      <div class="card-body">
        <h5 class="card-title">Eclipse IDE Introduction</h5>
        <p class="card-text">Eclipse is a widely used Java IDE.</p>