Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

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.

+ add another resource


Add Packages

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.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.



  <title>Bootstrap 4</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel="stylesheet" href="css/bootstrap.min.css">
  <link rel="stylesheet" href="css/font-awesome.min.css">
  <link rel="stylesheet" href="css/main.css">

  <!-- Start Upper Bar -->
  <div class="upper-bar">
    <div class="container">
      <div class="row">
        <div class="col-sm up-bar-sec-1">
          <i class="fa fa-phone"></i> 009 759 825 550 <i class="fa fa-envelope up-bar-fix"></i> [email protected]
        <div class="col-sm up-bar-sec-2">
          Let's Work Together
          <button>get quote</button>
  <!-- End Upper Bar -->

  <!-- Start Navbar -->
  <nav class="navbar navbar-expand-lg navbar-light">
    <div class="container">
      <a class="navbar-brand" href="#">
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-nav" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
      <div class="collapse navbar-collapse" id="main-nav">
        <ul class="navbar-nav ml-auto">
          <li class="nav-item">
            <a class="nav-link" href="#">Home</a>
          <li class="nav-item active">
            <a class="nav-link" href="#">about <span class="sr-only">(current)</span></a>
          <li class="nav-item">
            <a class="nav-link" href="#">work</a>
          <li class="nav-item">
            <a class="nav-link" href="#">blog</a>
          <li class="nav-item">
            <a class="nav-link" href="#">contact</a>
  <!-- End Navbar -->

  <!-- Start Slider -->
  <div class="slider">
    <div id="main-slider" class="carousel slide" data-ride="carousel">
      <ol class="carousel-indicators">
        <li data-target="#main-slider" data-slide-to="0" class="active"></li>
        <li data-target="#main-slider" data-slide-to="1"></li>
        <li data-target="#main-slider" data-slide-to="2"></li>
      <div class="carousel-inner">
        <div class="carousel-item active">
          <img class="d-block w-100" src="" alt="First slide">
        <div class="carousel-item">
          <img class="d-block w-100" src="" alt="Second slide">
        <div class="carousel-item">
          <img class="d-block w-100" src="" alt="Third slide">
  <!-- End Slider -->

  <script src="js/jquery.min.js"></script>
  <script src="js/popper.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/main.js"></script>



                /* Start Upper Bar */
.upper-bar {
    background: #08526D;
    color: #FFF;
    padding: 10px ;
    text-transform: uppercase

.up-bar-fix {margin-left: 15px}

.up-bar-sec-1 {text-align: left}

.up-bar-sec-2 {text-align:right}

.upper-bar .container .row .col-sm button {
    border: 1px solid #993240;
    background: none;
    color: #FFF;
    padding: 0 10px;
    height: 25px;
    text-transform: uppercase;
    margin-left: 50px
/* End Upper Bar */

/* Start Navbar Brand */
.navbar {font-family: sans-serif}

.navbar-brand span {
    font-size: 40px; 

.navbar-brand span:first-child {
    color: #08526D;
    font-weight: bold;

.navbar-brand span:last-child {
    color: #EC1C23;


.navbar-nav .nav-link {
    text-transform: uppercase;
    font-size: 16px;
    margin-left: 20px;
    color: #08526D;
    font-weight: 800

.navbar-nav .active > .nav-link {color: #EC1C23 !important}
/* End Navbar Brand */

/* Start Slider */
.slider {
    background: #DDD



                /* global $*/
$(function () {
    'use strict';
    //adjust slider height

    var winH = $(window).height(),
        uppH = $(".upper-bar").height(),
        navH = $(".navbar").height();
    $(".slider").height(winH - (uppH + navH));