HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!-- Header -->
<header class="pt-4">
<div class="container">
<div class="logo-img"></div>
<h1 class="logo-name text-center text-uppercase">Xtreme MEGA MENU</h1>
</div>
</header>
<!-- To activate Navbar-mobile MENU -->
<div class="bg-dark my-4 d-md-none d-block">
<div class="container">
<div class="text-right py-2">
<button onclick="toggleMenu()" class="btn btn-secondary rounded-0">MENU <i class="fa fa-bars"></i></button>
</div>
</div>
</div>
<!-- Navbar - Mobile -->
<div id="navbar-mobile" class="bg-dark d-none">
<div class="container">
<div class="text-right mt-4">
<button onclick="toggleMenu()" class="btn btn-danger rounded-0">Close X</button>
</div>
<div id="accordion">
<div class="accordion-item">
<button data-toggle="collapse" data-target="#home-mobile" class="btn btn-secondary btn-block rounded-0 text-left">Home <i class="fa fa-caret-down"></i></button>
<div id="home-mobile" class="collapse accordion-item-content" data-parent="#accordion">
<div class="accordion-item-content-item">
<h5 class="text-main">FACTSHEETS</h5>
<a href="#" class="text-dark accordion-content-link">Sample Link 1</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 2</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 3</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 4</a>
</div> <!-- accordion-item-content-item -->
<div class="accordion-item-content-item">
<h5 class="text-main">RESOURCES</h5>
<a href="#" class="text-dark accordion-content-link">Sample Link 1</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 2</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 3</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 4</a>
</div> <!-- accordion-item-content-item -->
<div class="accordion-item-content-item">
<h5 class="text-main">PUBLICATIONS</h5>
<a href="#" class="text-dark accordion-content-link">Sample Link 1</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 2</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 3</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 4</a>
</div> <!-- accordion-item-content-item -->
</div> <!-- accordion-item-content -->
</div> <!-- .accordion-item -->
<div class="accordion-item">
<a href="#" class="btn btn-secondary btn-block rounded-0 text-left">Research</a>
</div> <!-- .accordion-item -->
<div class="accordion-item">
<button data-toggle="collapse" data-target="#development-mobile" class="btn btn-secondary btn-block rounded-0 text-left">Development <i class="fa fa-caret-down"></i></button>
<div id="development-mobile" data-parent="#accordion" class="collapse accordion-item-content">
<div class="accordion-item-content-item">
<h5 class="text-main">ADMINISTRATION</h5>
<a href="#" class="text-dark accordion-content-link">Sample Link 1</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 2</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 3</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 4</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 5</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 6</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 7</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 8</a>
</div> <!-- accordion-item-content-item -->
<div class="accordion-item-content-item">
<h5 class="text-main">INFRASTRUCTURE</h5>
<a href="#" class="text-dark accordion-content-link">Sample Link 1</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 2</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 3</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 4</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 5</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 6</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 7</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 8</a>
</div> <!-- accordion-item-content-item -->
<div class="accordion-item-content-item">
<h5 class="text-main">SPORTS FACILITIES</h5>
<a href="#" class="text-dark accordion-content-link">Sample Link 1</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 2</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 3</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 4</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 5</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 6</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 7</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 8</a>
</div> <!-- accordion-item-content-item -->
<div class="accordion-item-content-item">
<h5 class="text-main">DEPARTMENTS</h5>
<a href="#" class="text-dark accordion-content-link">Sample Link 1</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 2</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 3</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 4</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 5</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 6</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 7</a>
<a href="#" class="text-dark accordion-content-link">Sample Link 8</a>
</div> <!-- accordion-item-content-item -->
</div> <!-- accordion-item-content -->
</div> <!-- .accordion-item -->
<div class="accordion-item">
<a href="#" class="btn btn-secondary btn-block rounded-0 text-left">Countries</a>
</div> <!-- .accordion-item -->
<div class="accordion-item">
<a href="#" class="btn btn-secondary btn-block rounded-0 text-left">About Us</a>
</div> <!-- .accordion-item -->
<div class="accordion-item">
<a href="#" class="btn btn-secondary btn-block rounded-0 text-left">Contact Us</a>
</div> <!-- .accordion-item -->
</div> <!-- #accordion -->
</div> <!-- container -->
</div> <!-- #navbar-mobile -->
<!-- ---------------------------------------------------------------------------------------------- -->
<!-- Navbar - Desktop -->
<div id="navbar" class="my-4 d-md-block d-none">
<div class="container">
<div class="d-flex justify-content-right align-items-center">
<div class="menu-item">
<a href="#" class="menu-link">Home <i class="fa fa-caret-down"></i></a>
<div class="menu-content">
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-6">
<div class="p-3">
<h4 class="text-main">FACTSHEETS</h4>
<a href="#" class="text-dark menu-content-link">Sample Link 1</a>
<a href="#" class="text-dark menu-content-link">Sample Link 2</a>
<a href="#" class="text-dark menu-content-link">Sample Link 3</a>
<a href="#" class="text-dark menu-content-link">Sample Link 4</a>
</div>
</div>
<!-- /.col-md-4 .col-sm-6 -->
<div class="col-md-4 col-sm-6">
<div class="p-3">
<h4 class="text-main">RESOURCES</h4>
<a href="#" class="text-dark menu-content-link">Sample Link 1</a>
<a href="#" class="text-dark menu-content-link">Sample Link 2</a>
<a href="#" class="text-dark menu-content-link">Sample Link 3</a>
<a href="#" class="text-dark menu-content-link">Sample Link 4</a>
</div>
</div>
<!-- /.col-md-4 .col-sm-6 -->
<div class="col-md-4 col-sm-6">
<div class="p-3">
<h4 class="text-main">PUBLICATIONS</h4>
<a href="#" class="text-dark menu-content-link">Sample Link 1</a>
<a href="#" class="text-dark menu-content-link">Sample Link 2</a>
<a href="#" class="text-dark menu-content-link">Sample Link 3</a>
<a href="#" class="text-dark menu-content-link">Sample Link 4</a>
</div>
</div>
<!-- /.col-md-4 .col-sm-6 -->
</div>
<!-- /.row -->
</div> <!-- menu-content > .container -->
</div> <!-- menu-content -->
</div> <!-- menu-item -->
<div class="menu-item">
<a href="#" class="menu-link">Research</a>
</div> <!-- menu-item -->
<div class="menu-item">
<a href="#" class="menu-link">Development <i class="fa fa-caret-down"></i></a>
<div class="menu-content">
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="list-group rounded-0" id="development-tabs">
<a href="#administration-tab-content" data-toggle="tab" class="list-group-item list-group-item-action active">
<b>Administration</b>
</a> <!-- /.list-group-item -->
<a href="#infrastructure-tab-content" data-toggle="tab" class="list-group-item list-group-item-action">
<b>Infrastructure</b>
</a> <!-- /.list-group-item -->
<a href="#sports-tab-content" data-toggle="tab" class="list-group-item list-group-item-action">
<b>Sports Facilities</b>
</a> <!-- /.list-group-item -->
<a href="#departments-tab-content" data-toggle="tab" class="list-group-item list-group-item-action">
<b>Departments</b>
</a> <!-- /.list-group-item -->
</div> <!-- #development-tabs .list-group -->
</div> <!-- col-md-4 -->
<div class="col-md-8 bg-light">
<div class="tab-content">
<div id="administration-tab-content" class="tab-pane fade show active p-3">
<div class="d-flex align-items-center">
<div class="bg-secondary shadow mr-4 flex-1" style="height: 150px;">
<img class="tab-content-img" src="https://www.cogneesol.com/blog/wp-content/uploads/2017/01/insurance-policy.jpg" alt="administration">
</div>
<div class="flex-1">
<a href="#" class="text-dark menu-content-link">Sample Link 1</a>
<a href="#" class="text-dark menu-content-link">Sample Link 2</a>
<a href="#" class="text-dark menu-content-link">Sample Link 3</a>
<a href="#" class="text-dark menu-content-link">Sample Link 4</a>
</div>
<div class="flex-1">
<a href="#" class="text-dark menu-content-link">Sample Link 1</a>
<a href="#" class="text-dark menu-content-link">Sample Link 2</a>
<a href="#" class="text-dark menu-content-link">Sample Link 3</a>
<a href="#" class="text-dark menu-content-link">Sample Link 4</a>
</div>
</div>
<!-- /.d-flex -->
</div> <!-- tab-pane -->
<div id="infrastructure-tab-content" class="tab-pane fade p-3">
<div class="d-flex align-items-center">
<div class="bg-secondary shadow mr-4 flex-1" style="height: 150px;">
<img class="tab-content-img" src="https://images.shiksha.com/mediadata/images/1513922151phpyhMkzk.png" alt="infrastructure">
</div>
<div class="flex-1">
<a href="#" class="text-dark menu-content-link">Sample Link 1</a>
<a href="#" class="text-dark menu-content-link">Sample Link 2</a>
<a href="#" class="text-dark menu-content-link">Sample Link 3</a>
</div>
<div class="flex-1">
<a href="#" class="text-dark menu-content-link">Sample Link 1</a>
<a href="#" class="text-dark menu-content-link">Sample Link 2</a>
<a href="#" class="text-dark menu-content-link">Sample Link 3</a>
</div>
</div>
<!-- /.d-flex -->
</div> <!-- tab-pane -->
<div id="sports-tab-content" class="tab-pane fade p-3">
<div class="d-flex align-items-center">
<div class="bg-secondary shadow mr-4 flex-1" style="height: 150px;">
<img class="tab-content-img" src="https://sportadvisory.com/wp-content/uploads/2017/01/popular-types-of-facilities-sports-facilities-advisory.jpg" alt="sport facilities">
</div>
<div class="flex-1">
<a href="#" class="text-dark menu-content-link">Sample Link 1</a>
<a href="#" class="text-dark menu-content-link">Sample Link 2</a>
<a href="#" class="text-dark menu-content-link">Sample Link 3</a>
<a href="#" class="text-dark menu-content-link">Sample Link 4</a>
</div>
<div class="flex-1">
<a href="#" class="text-dark menu-content-link">Sample Link 1</a>
<a href="#" class="text-dark menu-content-link">Sample Link 2</a>
<a href="#" class="text-dark menu-content-link">Sample Link 3</a>
<a href="#" class="text-dark menu-content-link">Sample Link 4</a>
</div>
</div>
<!-- /.d-flex -->
</div> <!-- tab-pane -->
<div id="departments-tab-content" class="tab-pane fade p-3">
<div class="d-flex align-items-center">
<div class="bg-secondary shadow mr-4 flex-1" style="height: 150px;">
<img class="tab-content-img" src="https://www.anandacollege.in/wp-content/uploads/2018/05/dept-tamil.png" alt="departments">
</div>
<div class="flex-1">
<a href="#" class="text-dark menu-content-link">Sample Link 1</a>
<a href="#" class="text-dark menu-content-link">Sample Link 2</a>
<a href="#" class="text-dark menu-content-link">Sample Link 3</a>
</div>
<div class="flex-1">
<a href="#" class="text-dark menu-content-link">Sample Link 1</a>
<a href="#" class="text-dark menu-content-link">Sample Link 2</a>
<a href="#" class="text-dark menu-content-link">Sample Link 3</a>
</div>
</div>
<!-- /.d-flex -->
</div> <!-- tab-pane -->
</div> <!-- tab-content -->
</div> <!-- .col-md-8 -->
</div>
<!-- /.row -->
</div> <!-- menu-content > .container -->
</div> <!-- menu-content -->
</div> <!-- menu-item -->
<div class="menu-item">
<a href="#" class="menu-link">Countries</a>
</div> <!-- menu-item -->
<div class="menu-item">
<a href="#" class="menu-link">About Us</a>
</div> <!-- menu-item -->
<div class="menu-item">
<a href="#" class="menu-link">Contact Us</a>
</div> <!-- menu-item -->
</div>
<!-- /.d-flex justify-content-around align-items-center -->
</div>
<!-- /.container -->
</div> <!-- /#navbar (desktop) -->
<!-- BULLSHIT CONTENT ===================== -->
<div class="container my-4">
<div class="row">
<div class="col-md-8">
<div class="d-none border bg-light mb-4">
<div class="row">
<div class="col-md-4">
<div class="list-group rounded-0" id="development-tabs">
<a href="#administration-tab-content" data-toggle="tab" class="list-group-item list-group-item-action active">
<b>Administration</b>
</a> <!-- /.list-group-item -->
<a href="#infrastructure-tab-content" data-toggle="tab" class="list-group-item list-group-item-action">
<b>Infrastructure</b>
</a> <!-- /.list-group-item -->
<a href="#sports-tab-content" data-toggle="tab" class="list-group-item list-group-item-action">
<b>Sports Facilities</b>
</a> <!-- /.list-group-item -->
<a href="#departments-tab-content" data-toggle="tab" class="list-group-item list-group-item-action">
<b>Departments</b>
</a> <!-- /.list-group-item -->
</div> <!-- #development-tabs .list-group -->
</div> <!-- col-md-4 -->
<div class="col-md-8">
<div class="tab-content">
<div id="administration-tab-content" class="tab-pane fade show active p-3">
<div class="d-flex">
<div class="bg-secondary shadow-sm mr-4" style="width: 200px; height: 150px;"></div>
<div class="py-1">
<p class="m-0"><a href="#" class="text-decoration-none">Sample Link 1</a></p>
<p class="m-0"><a href="#" class="text-decoration-none">Sample Link 2</a></p>
<p class="m-0"><a href="#" class="text-decoration-none">Sample Link 3</a></p>
<p class="m-0"><a href="#" class="text-decoration-none">Sample Link 4</a></p>
<p class="m-0"><a href="#" class="text-decoration-none">Sample Link 5</a></p>
<p class="m-0"><a href="#" class="text-decoration-none">Sample Link 6</a></p>
</div>
</div>
<!-- /.d-flex -->
</div>
<div id="infrastructure-tab-content" class="tab-pane fade p-3">
Infra Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellendus, sunt.
</div>
<div id="sports-tab-content" class="tab-pane fade p-3">
Sports Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellendus, sunt.
</div>
<div id="departments-tab-content" class="tab-pane fade p-3">
Departments Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellendus, sunt.
</div>
</div> <!-- tab-content -->
</div> <!-- .col-md-8 -->
</div> <!-- .row -->
</div>
<!-- /.card bg-light mb-4 -->
<div class="card bg-light mb-4">
<div class="card-body">
<h2 class="text-main text-capitalize">Lorem ipsum dolor sit amet.</h2>
<hr>
<p class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis totam, dicta provident omnis voluptas laborum natus porro doloribus reprehenderit non saepe ut. Illo nemo ut incidunt dignissimos, neque consequuntur amet veritatis nobis repellendus possimus molestiae reprehenderit vitae, magni, porro voluptas? Nisi eius repellat laudantium nesciunt excepturi nemo exercitationem nam quasi.</p>
<p class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis totam, dicta provident omnis voluptas laborum natus porro doloribus reprehenderit non saepe ut. Illo nemo ut incidunt dignissimos, neque consequuntur amet veritatis nobis repellendus possimus molestiae reprehenderit vitae, magni, porro voluptas? Nisi eius repellat laudantium nesciunt excepturi nemo exercitationem nam quasi. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolore tempora, quaerat magnam explicabo, molestiae sequi error fuga, incidunt officiis voluptate accusantium commodi vero. Ad vel magnam aperiam dolorem, cum enim.</p>
</div> <!-- card-body -->
</div> <!-- card -->
<div class="card bg-light mb-4">
<div class="card-body">
<h2 class="text-main text-capitalize">Lorem ipsum dolor sit amet.</h2>
<hr>
<p class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis totam, dicta provident omnis voluptas laborum natus porro doloribus reprehenderit non saepe ut. Illo nemo ut incidunt dignissimos, neque consequuntur amet veritatis nobis repellendus possimus molestiae reprehenderit vitae, magni, porro voluptas? Nisi eius repellat laudantium nesciunt excepturi nemo exercitationem nam quasi.</p>
<p class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis totam, dicta provident omnis voluptas laborum natus porro doloribus reprehenderit non saepe ut. Illo nemo ut incidunt dignissimos, neque consequuntur amet veritatis nobis repellendus possimus molestiae reprehenderit vitae, magni, porro voluptas? Nisi eius repellat laudantium nesciunt excepturi nemo exercitationem nam quasi. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolore tempora, quaerat magnam explicabo, molestiae sequi error fuga, incidunt officiis voluptate accusantium commodi vero. Ad vel magnam aperiam dolorem, cum enim.</p>
</div> <!-- card-body -->
</div> <!-- card -->
<div class="card bg-light mb-4">
<div class="card-body">
<h2 class="text-main text-capitalize">Lorem ipsum dolor sit amet.</h2>
<hr>
<p class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis totam, dicta provident omnis voluptas laborum natus porro doloribus reprehenderit non saepe ut. Illo nemo ut incidunt dignissimos, neque consequuntur amet veritatis nobis repellendus possimus molestiae reprehenderit vitae, magni, porro voluptas? Nisi eius repellat laudantium nesciunt excepturi nemo exercitationem nam quasi.</p>
<p class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reiciendis totam, dicta provident omnis voluptas laborum natus porro doloribus reprehenderit non saepe ut. Illo nemo ut incidunt dignissimos, neque consequuntur amet veritatis nobis repellendus possimus molestiae reprehenderit vitae, magni, porro voluptas? Nisi eius repellat laudantium nesciunt excepturi nemo exercitationem nam quasi. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolore tempora, quaerat magnam explicabo, molestiae sequi error fuga, incidunt officiis voluptate accusantium commodi vero. Ad vel magnam aperiam dolorem, cum enim.</p>
</div> <!-- card-body -->
</div> <!-- card -->
</div> <!-- /.col-md-8 -->
<div class="col-md-4">
<div class="card mb-4">
<div class="card-header">
<h5 class="text-secondary m-0">Notices</h5>
</div> <!-- card-header -->
<div class="card-body">
<ul class="pl-3">
<li><a href="#" class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo, id!</a></li>
<li><a href="#" class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo, id!</a></li>
<li><a href="#" class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo, id!</a></li>
<li><a href="#" class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo, id!</a></li>
<li><a href="#" class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo, id!</a></li>
</ul>
</div> <!-- card-body -->
</div> <!-- card -->
<div class="card mb-4">
<div class="card-header">
<h5 class="text-secondary m-0">News & Events</h5>
</div> <!-- card-header -->
<div class="card-body">
<ul class="pl-3">
<li><a href="#" class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo, id!</a></li>
<li><a href="#" class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo, id!</a></li>
<li><a href="#" class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo, id!</a></li>
<li><a href="#" class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo, id!</a></li>
<li><a href="#" class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nemo, id!</a></li>
</ul>
</div> <!-- card-body -->
</div> <!-- card -->
</div> <!-- /.col-md-4 -->
</div>
</div> <!-- container generic-content -->
<!-- footer -->
<footer class="bg-dark mt-4 py-3">
<div class="container">
<p class="m-0 text-secondary text-center">
Copyright © 2020 IVL ltf. | All Rights Reserved.
</p>
</div>
</footer>
:root {
--main: rgb(35, 86, 186);
}
.text-main {
color: var(--main);
}
.flex-1 {
flex: 1;
}
.logo-img {
background-color: #eee;
width: 75px;
height: 75px;
margin: 0 auto 18px auto;
border-radius: 5rem;
box-shadow: 0 2px 5px 0px rgba(0, 0, 0, 0.4);
}
.logo-name {
font-size: 1.4rem;
font-weight: bold;
color: var(--main);
padding: 0 30px;
}
/*==========*/
/* Menus */
/*=========*/
/*Desktop Navbar*/
#navbar {
position: relative;
background-color: #333;
}
.menu-item {
border-right: 1px solid #111;
}
.menu-item:first-child {
border-left: 1px solid #111;
}
.menu-link {
display: block;
color: #8ea9c5;
padding: 10px 20px;
text-decoration: none !important;
}
.menu-item:hover .menu-link {
color: #fff;
background-color: #222;
}
.menu-content {
position: absolute;
width: 100%;
background-color: #ebebeb;
padding: 30px 0;
left: 0;
border-bottom: 5px solid var(--main);
box-shadow: 0 4px 8px 4px rgba(0, 0, 0, 0.3);
animation: slideUp 0.3s ease;
display: none;
z-index: 3;
}
.menu-content .menu-content-link {
display: block;
padding: 5px 15px;
transition: 0.25s;
}
.menu-content .menu-content-link:hover {
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
text-decoration: none;
}
.menu-item .list-group .active {
background-color: var(--main);
}
.menu-item:hover .menu-content {
display: block;
}
.tab-content-img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
/* animation */
@keyframes slideUp {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0px);
}
}
/*Mobile-Navbar*/
#navbar-mobile {
position: fixed;
width: 100%;
top: 0;
height: 100vh;
overflow: auto;
animation: slideUp 0.3s ease;
z-index: 5;
}
#accordion {
padding: 30px 0;
}
#navbar-mobile .accordion-item .btn {
padding: 15px;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}
.accordion-item-content {
background-color: #eee;
}
.accordion-item-content-item {
padding: 15px 20px;
}
.accordion-content-link {
display: inline-block;
padding: 5px 15px;
transition: 0.25s;
}
.accordion-content-link:hover {
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
text-decoration: none;
}
function toggleMenu() {
let menu = document.querySelector("#navbar-mobile");
let body = document.querySelector("body");
menu.classList.toggle("d-none");
body.classList.toggle("overflow-hidden");
}
Also see: Tab Triggers