Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's 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 it's URL and the proper URL extention.

+ add another resource

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="navbar.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lora">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
  </head>
  <body>
  <div class="wrapper">

    <nav>
<input id="nav-toggle" type="checkbox">
      <ul class="deskmenu">
        <div class="logo">
          <img src="https://image.shutterstock.com/image-vector/sample-stamp-grunge-texture-vector-260nw-1389188336.jpg" alt="">
        </div>
        <li><a href="#" class="lab">Home</a></li>
        <li><a href="#"class="lab">Journal</a></li>
        <li class="drop">
          <a href="#"class="lab">Research</a>
          <ul class="menu">
<div class="row">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
            <div class = "row">
          <li><a href="#"><label>Communities</label><div class="desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </div></a></li>

            <li><a href="#"><label>Covid</label><div class="desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </div></a></li>
          </div>
          <div id="row2">
            <li><a href="#"><label>Education Reform</label><div class="desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </div></a></li>
            <li><a href="#"><label>All Research</label><div class="desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </div></a></li>
          </div>
          </ul>
        </li>
        <li class="drop">
          <a href="#"class="lab">About</a>
          <ul class="menu">
            <div class="row">
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>

            </div>
            <div class="row">
            <li><a href="#"><label>Mission</label><div class="desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </div></a></li>

            <li><a href="#"><label>Executive Board</label><div class="desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </div></a></li></div>
            <div class="row">
      <li><a href="#"><label>Researchers</label><div class="desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </div></a></li>
            <li><a href="#"><label>Join our team</label><div class="desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </div></a></li></div>
            <div id="row3">
            <li><a href="#"><label>Press</label><div class="desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </div></a></li>
            <li><a href="#"><label>Contact</label><div class="desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </div></a></li>
          </div>
          </ul>
        </li>
      </ul>
      <label for="nav-toggle" class="icon-burger">
  <div class="line"></div>
  <div class="line"></div>
  <div class="line"></div>
</label>
    </nav>

  </div>



</body>
</html>

              
            
!

CSS

              
                /*Global*/
* {
  border: 0;
  margin: 0;
  padding: 0;
  font-family: "lora";
  box-sizing: border-box;
}
/*navbar*/
#nav-toggle {
	position: absolute;
	top: -100px;
}
nav .icon-burger {
	display: none;
	position: absolute;
	right: 5%;
	top: 50%;
	transform: translateY(-50%);
}
nav .icon-burger .line {
	width: 30px;
	height: 5px;
	background-color: black;
	margin: 5px;
	border-radius: 3px;
	transition: all .3s ease-in-out;
}
.wrapper {
  position:fixed;
  width: 100%;
}

nav {
  position: absolute;
z-index: 10;
  width: 100%;
  background: white;
  font-size: 16px;
  height:100px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

nav > ul {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
  display: flex;
  justify-content: center;
  gap: max(2vw, 5px);
}

nav a {

  display: block;
  color: black;
  text-decoration: none;
  text-transform: uppercase;
}

nav > ul > li > a {
  color: black;
  display:flex;
}

nav ul li {
  display:flex;
  border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
  list-style: none;
  margin-top:25px;
  margin-bottom: 21px;
}

nav > ul > li > a {
display:block;
  padding: 15px 25px;
}

nav ul > li.drop > a:after {
  position: relative;


  content: " ";
  margin-left: 11px;
  margin-top: 8px;
}

nav > ul > li:hover {
background-color: #1c4587;
transition: all 1s ease;
}


nav > ul > li:hover > a {
   color: white;
}
nav ul.menu {
  background: white;
  text-align: left;
  border-top: 5px solid #f2f2f2;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
display:flex;
  position: absolute;
  justify-content: flex-end;
  flex-direction: row;
  width: 100%;
  top: -2000px;

}
/*menu*/
nav ul li:focus-within ul.menu {
  top: 100%;

  left: 0%;
transition: all 0.6s ease-in-out;
}
nav ul.menu ul {

  width: 25%;
  margin-bottom: 40px;
  color: blue;
}
nav ul.menu ul li {
  display: inline;
  font-size: 1.5em;
}
nav ul.menu li a {
  padding-top:5%;
  padding-bottom:2%;
  padding-left: 2rem;
  color: #000;
  text-transform: none;

  transition: all 0.5s ease;
}

nav ul.menu li a:hover {
  color: #164c82;
  transform: scale(1.05);
}
/*image*/
.logo img {
  height: 96px;
}
.logo {
  display:flex;

	width: 40%;
	height: 100%;
	display: flex;
	align-items: center;
	font-size: 24px;
}
/*random?*/
.row{
  flex:1;

}
#rdesc{
  margin-top:25px;
}
nav ul label{

font-weight: 700;
font-size: 1.2em;
text-decoration: underline;
text-decoration-color: #4de376;
}
#row2{
  flex:1;
margin-bottom:2%;
  margin-right: 10%;
}
nav ul p{

  font-size: 1.2em;
    font-weight: 400;
  padding-left:100px;
  padding-right:25px;
  margin-top:10%;
  margin-left:15%;
  margin-bottom: 15%;
}
#row3{
  flex:1;
  margin-right: 10%;
}

/*mobile*/
@media screen and (max-width: 768px) {
 nav .logo img{
        float: none;
        width: auto;

        justify-content: center;
    }
  ul{
    display:flex;
    flex-direction: column;
  }
    nav ul li a {
    display:flex;
    position:relative;
  flex-direction:column;
            z-index: 9;
            left: 0;
            right: 0;
           top: 100px;
            bottom: 100%;
            width: auto;
            height: auto;

            justify-content: space-evenly;
            background-color: rgba(0,0,0,0);
            overflow: hidden;
            box-sizing: border-box;
            transition: all .5s ease-in-out;
    }
    nav .li a {
        font-size: 20px;
    }
    nav :checked ~ li a {
        bottom: 0;
    }
    nav .icon-burger {
        display: hidden; /* Change this display: block; to display: hidden;*/
    }
    nav :checked ~ .icon-burger .line:nth-child(1) {
        transform: translateY(10px) rotate(225deg);
    }
    nav :checked ~ .icon-burger .line:nth-child(3) {
        transform: translateY(-10px) rotate(-225deg);
    }
    nav :checked ~ .icon-burger .line:nth-child(2) {
        opacity: 0;
    }

}

              
            
!

JS

              
                
              
            
!
999px

Console