Create flexible image overlays with positioning, responsiveness, blur, gradients, and adaptive typography. Compatible with Bootstrap 4 and 5. You can also use it with videos!
Installation
is simple: place the following link beneath your call to Bootstrap CSS.
<link href="https://scripts.afit.edu/css/bs-text-image.css" rel="stylesheet" type="text/css">
<div class="imgtxt pos-mc">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
Supporting text
<div class="imgtxt pos-br pos-md-mc ov-40 ov-dark ov-grad-angle ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
Supporting text
Classic centered layout.
<div class="imgtxt pos-mc ov-rounded rounded ov-50 ov-dark">
<img src="https://picsum.photos/800/600?random=3" class="img-fluid rounded">
<div class="imgtxt-content">
<h2>Centered Overlay</h2>
<p>Classic centered layout.</p>
</div>
</div>
Text is centered on large screens and shifts to the bottom left on mobile screens.
<div class="imgtxt pos-bl pos-md-mc ov-rounded rounded ov-40 ov-primary">
<img src="https://picsum.photos/800/600?random=4" class="img-fluid rounded">
<div class="imgtxt-content">
<h2>Responsive Position</h2>
<p>Text is centered on large screens and shifts to the bottom left on mobile screens.</p>
</div>
</div>
Vignette gradient pattern
<div class="imgtxt pos-mc ov-rounded rounded ov-50 ov-primary ov-grad-vignette">
<img src="https://picsum.photos/800/600?random=5" class="img-fluid rounded">
<div class="imgtxt-content">
<h2>Gradient Overlay</h2>
<p>Vignette gradient pattern</p>
</div>
</div>
Backdrop blur effect
<div class="imgtxt pos-mc ov-rounded rounded ov-40 ov-dark">
<img src="https://picsum.photos/800/600?random=6" class="img-fluid blur-6 rounded">
<div class="imgtxt-content">
<h2>Blur Overlay</h2>
<p>Backdrop blur effect</p>
</div>
</div>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras risus nunc, tincidunt non, euismod non, molestie sed, ipsum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla facilisi. Vivamus neque tortor, porta ac, dictum sodales, dapibus eget, sapien. Phasellus arcu turpis, tempus et, dignissim vitae, tempus at, augue. Curabitur ut metus. Fusce pretium. Donec et purus. Morbi eget eros. In quis urna at risus porttitor ultrices. Nunc diam odio, posuere eu, tempus id, sagittis vitae, ipsum.
<div class="imgtxt pos-mc ov-rounded rounded ov-60 ov-dark">
<img src="https://picsum.photos/800/600?random=7" class="img-fluid rounded">
<div class="imgtxt-content">
<h3>Scrollable Long Content</h3>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras risus nunc, tincidunt non, euismod non, molestie sed, ipsum.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla facilisi. Vivamus neque tortor,
porta ac, dictum sodales, dapibus eget, sapien. Phasellus arcu turpis, tempus et, dignissim vitae, tempus at, augue. Curabitur ut metus.
Fusce pretium. Donec et purus. Morbi eget eros. In quis urna at risus porttitor ultrices. Nunc diam odio, posuere eu, tempus id,
sagittis vitae, ipsum. Etiam molestie, purus vitae suscipit gravida, diam velit auctor nisl, vel gravida elit quam facilisis felis.
</p>
</div>
</div>
Text can be positioned within a three by three grid.
Position top-left
<div class="imgtxt pos-tl ov-20 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
Position top-center
<div class="imgtxt pos-tc ov-20 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
Position top-right
<div class="imgtxt pos-tr ov-20 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
Position middle-left
<div class="imgtxt pos-ml ov-20 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
Position middle-center
<div class="imgtxt pos-mc ov-20 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
Position middle-right
<div class="imgtxt pos-mr ov-20 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
Position bottom-left
<div class="imgtxt pos-bl ov-20 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
Position bottom-center
<div class="imgtxt pos-bc ov-20 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
Position bottom-right
<div class="imgtxt pos-br ov-20 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
You can position your text in different locations on mobile screens using these classes in conjunction with the standard positioning classes.
class="imgtxt pos-bl pos-md-mc"
You can add color overlays to the image. This will allow you to add and overlay to increase the contrast between image subject and the text.
Opacity on the color overlay can be accomplished using the classes .ov-10 through .ov-90 in steps of ten.
<div class="imgtxt pos-mc ov-10 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-20 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-30 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-50 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-60 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-70 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-80 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-90 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
The unility contains all standard Bootstrap colors and a few custom ones. The following are valid color names:
<div class="imgtxt pos-mc ov-40 ov-primary ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-secondary ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-success ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-danger ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-warning ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-info ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-light ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-dark ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-white ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-black ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-afblue ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-indigo ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-purple ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-pink ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-orange ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt pos-mc ov-40 ov-teal ov-rounded rounded">
<img src="image.jpg" class="img-fluid blur-2">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
You can round the edges of your images using the combination of standard Bootstrap .rounded and the .ov-rounded. Place the .ov-rounded class and Bootstrap .rounded class in your DIV tag. Note: if you round one but not the other your image will have hard and rounded corners at the same time.
<div class="imgtxt pos-mc ov-40 ov-dark ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
The utility includes seven gradient overlays that allow focus or contrast changes within an image. Apply the .ov-grad-{gradient} class to your DIV tag to use this nifty feature.
bottom fade
<div class="imgtxt pos-mc ov-40 ov-primary ov-grad-b ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
top fade
<div class="imgtxt pos-mc ov-40 ov-primary ov-grad-t ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
left fade
<div class="imgtxt pos-mc ov-40 ov-primary ov-grad-l ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
right fade
<div class="imgtxt pos-mc ov-40 ov-primary ov-grad-r ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
faded edges
<div class="imgtxt pos-mc ov-40 ov-primary ov-grad-vignette ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
faded center
<div class="imgtxt pos-mc ov-40 ov-primary ov-grad-spot ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
fade to bottom right
<div class="imgtxt pos-mc ov-40 ov-primary ov-grad-angle ov-rounded rounded">
<img src="image.jpg" class="img-fluid">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
Apply blurs to the image tag class. Apply using .blur-{#} from 2-10 in increments of 2. Avoid using this often as it can create confusion.
Add this class to the image tag to blur the image. You can also use this script to un-blur on hover.
$(document).ready(function(){
$('.imgtxt a').hover(
function() {
const $img = $(this).closest('.imgtxt').find('img');
// store existing blur class
const blurClass = ($img.attr('class').match(/blur-\d+/) || [])[0];
$img.data('blur-class', blurClass);
// remove any blur-* class
$img.removeClass(function(index, className) {
return (className.match(/blur-\d+/g) || []).join(' ');
});
},
function() {
const $img = $(this).closest('.imgtxt').find('img');
// restore original blur class if it existed
const blurClass = $img.data('blur-class');
if (blurClass) {
$img.addClass(blurClass);
}
}
);
});
Here's a working sample!
<div class="imgtxt ov-40 ov-afblue pos-mc ov-rounded rounded scale-tight">
<a href="#" class="text-white stretched-link">
<img src="image.jpg" class="img-fluid blur-4">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</a>
</div>
.imgtxt-content-scale class!.scale-tight for compact layoutsLorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras risus nunc, tincidunt non, euismod non, molestie sed, ipsum.
<div class="imgtxt ov-40 ov-afblue pos-mc ov-rounded rounded scale-tight">
<img src="image.jpg" class="img-fluid blur-4">
<div class="imgtxt-content imgtxt-content-scale">
<h2>Overlay Title</h2>
<p>Supporting text</p>
</div>
</div>
<div class="imgtxt ov-60 ov-afblue pos-mc ov-rounded rounded ov-grad-angle" style="width:300px;">
<a href="#" class="text-white stretched-link">
<img src="https://picsum.photos/600/400?random=9" class="img-fluid rounded blur-4" alt="">
<div class="imgtxt-content imgtxt-content-scale">
<h3>This Is a Header For The Image</h3>
<p class="lead text-left">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras risus nunc, tincidunt non, euismod non, molestie sed, ipsum.</p>
</div>
</a>
</div>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras risus nunc, tincidunt non, euismod non, molestie sed, ipsum.
<div class="imgtxt ov-40 ov-afblue pos-mc ov-rounded rounded scale-tight">
<img src="https://picsum.photos/400/400?random=17" class="img-fluid rounded" alt="">
<div class="imgtxt-content imgtxt-content-scale">
<h3>This Is a Header For The Image</h3>
<p class="lead text-left">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Cras risus nunc, tincidunt non, euismod non, molestie sed, ipsum.
</p>
</div>
</div>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras risus nunc, tincidunt non, euismod non, molestie sed, ipsum.
<div class="imgtxt ov-60 ov-danger pos-mc ov-rounded rounded">
<img src="https://picsum.photos/500/800?random=18" class="img-fluid rounded" alt="">
<div class="imgtxt-content imgtxt-content-scale">
<h3>This Is a Header For The Image</h3>
<p class="lead text-left">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Cras risus nunc, tincidunt non, euismod non, molestie sed, ipsum.
</p>
</div>
</div>
<div class="imgtxt ov-40 ov-teal pos-mc ov-rounded rounded">
<img src="https://picsum.photos/400/150?random=19" class="img-fluid rounded" alt="">
<div class="imgtxt-content imgtxt-content-scale">
<h3>This Is a Header For The Image</h3>
</div>
</div>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras risus nunc, tincidunt non, euismod non, molestie sed, ipsum.
<div class="imgtxt ov-50 ov-orange pos-mc" style="border-radius: 50%;">
<img src="https://picsum.photos/300/300?random=20" class="img-fluid rounded" alt="" style="border-radius: 50%;">
<div class="imgtxt-content imgtxt-content-scale">
<h3>This Is a Header For The Image</h3>
<p class="lead text-left">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Cras risus nunc, tincidunt non, euismod non, molestie sed, ipsum.
</p>
</div>
</div>
<div class="imgtxt ov-50 ov-pink pos-bc"
style="width:300px; height:300px; overflow:hidden; clip-path:polygon(50% 0%, 0% 100%, 100% 100%);">
<img src="https://picsum.photos/300/300?random=21" class="img-fluid rounded" alt="">
<h3>This Is a Header For The Image</h3>
</div>
</div>
This is a very tall image for testing.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras risus nunc, tincidunt non, euismod non, molestie sed, ipsum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla facilisi. Vivamus neque tortor, porta ac, dictum sodales, dapibus eget, sapien. Phasellus arcu turpis, tempus et, dignissim vitae, tempus at, augue. Curabitur ut metus. Fusce pretium. Donec et purus. Morbi eget eros. In quis urna at risus porttitor ultrices. Nunc diam odio, posuere eu, tempus id, sagittis vitae, ipsum. Etiam molestie, purus vitae suscipit gravida, diam velit auctor nisl, vel gravida elit quam facilisis felis.
<div class="imgtxt ov-50 ov-purple pos-mc">
<img src="https://picsum.photos/300/600?random=22" class="img-fluid rounded" alt="">
<div class="imgtxt-content imgtxt-content-scale">
<h3>This Is a Header For The Image</h3>
<p>This is a very tall image for testing.</p>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Cras risus nunc, tincidunt non, euismod non, molestie sed, ipsum.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
Nulla facilisi. Vivamus neque tortor, porta ac, dictum sodales, dapibus eget, sapien.
Phasellus arcu turpis, tempus et, dignissim vitae, tempus at, augue.
Curabitur ut metus. Fusce pretium. Donec et purus. Morbi eget eros.
In quis urna at risus porttitor ultrices. Nunc diam odio, posuere eu, tempus id, sagittis vitae, ipsum.
Etiam molestie, purus vitae suscipit gravida, diam velit auctor nisl, vel gravida elit quam facilisis felis.
</p>
</div>
</div>
Overlay utilities can sit on video just like they do on images.
<div class="imgtxt ov-60 ov-afblue pos-mc ov-rounded rounded ov-grad-angle" style="aspect-ratio: 16 / 9;">
<video class="imgtxt-media rounded" autoplay muted loop playsinline>
<source src="images/test.mp4" type="video/mp4">
</video>
<div class="imgtxt-content">
<h3>This Is Video Overlay Text</h3>
<p class="lead">Overlay utilities can sit on video just like they do on images.</p>
</div>
</div>
You can also use the utility to create video hero
elements. Click here to see a sample! The hero video has a custom .hero-navbar class that works with a standard Bootstrap navbar. It is typically preferable to use a transparent navbar. To accomplish this, leave the Bootstrap navbar background class off. You can adjust the navbar text color with .navbar-dark (white text) or .navbar-light (light text) classes.
<div class="imgtxt hero-video-wrap ov-80 ov-dark ov-grad-angle" style="height: 100vh;width: 100%;">
<nav class="navbar navbar-expand-xl navbar-dark hero-navbar">
<a class="navbar-brand" href="#">Expand at xl</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample06" aria-controls="navbarsExample06" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExample06">
<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="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="dropdown06" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu" aria-labelledby="dropdown06">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Logout</a>
</li>
</ul>
</div>
</nav>
<video class="imgtxt-media" autoplay muted loop playsinline>
<source src="images/test.mp4" type="video/mp4">
</video>
<div class="imgtxt-content pos-mc-vid-hero text-white">
<h1>Hero Heading</h1>
<p class="lead">Overlay text on video.</p>
</div>
</div>