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.
<div id="navbar">
<nav class="navbar navbar-default navbar-static-top" role="navigation">
<div class="collapse navbar-collapse" id="navbar-collapse-1">
<ul class="menu nav navbar-nav">
<li class="menu ">
<a href="#" class="" ><br>Home</a>
</li>
<li class="menu
dropdown">
<a href="#" class="dropdown-toggle" >
Information<br>Services<b class="caret"></b></a>
<ul class="menu dropdown-menu">
<li class="menu
dropdown dropdown-submenu"><a href="#" class="dropdown-toggle" >Something</a>
<ul class="menu
dropdown-menu">
<li class="menu
dropdown dropdown-submenu"><a href="#" class="dropdown-toggle" > Production Access</a>
<ul class="menu
dropdown-menu">
<li class="menu
kopie"><a href="http:" class="aMenu" target="_blank" >Login Page</a></li>
<li class="menu
kopie"><a href="https:" class="aMenu" target="_blank" >Login Instructions</a></li>
</ul>
</li>
<li class="menu
kopie"><a href="https://" class="aMenu" target="_blank" >Radius Status Page</a>
</li>
</ul>
</li>
<li class="menu
kopie"><a href="agbc" class="aMenu" target="_blank" >Employee Handbook</a></li>
<li class="menu
kopie"><a href="abc" class="aMenu" target="_blank" >2017 Holiday Schedule</a></li>
<li class="menu
kopie">
<a href="abc" class="aMenu" target="_blank" >Management Schedule</a></li>
<li class="menu
kopie"><a href="abc""> Photo Directory</a></li>
<li class="menu
dropdown dropdown-submenu"><a href="#" class="dropdown-toggle" >Office Ergonomics</a>
<ul class="menu
dropdown-menu">
<li class="menu
kopie"><a href="abc" class="aMenu" target="_blank" >Workstation Adjustments (image)</a></li>
<li class="menu
kopie"><a href="abc" class="aMenu" target="_blank" >Chair Adjustments (video)</img></a></li>
</ul>
</li>
<li class="menu
kopie"><a href="abc" class="aMenu" target="_blank" >Farmhouse Alarm System</a></li>
<li class="menu
kopie"><a href="abc" class="aMenu" target="_blank" >Company Chart</a></li>
</ul>
</li>
<li class="menu
dropdown"><a href="#" class="dropdown-toggle" ><br>Reports<b class="caret"></b></a>
<ul class="menu
dropdown-menu">
<li class="menu
kopie"><a href="abc" target="_blank" class="aMenu" >Production Orders</a></li>
<li class="menu
kopie"><a href="abc" class="aMenu" target="_blank" >Protected Varieties Maintenance</a></li>
<li class="menu
kopie"><a href=href="abc" class="aMenu" target="_blank" >Web Reports</a></li>
<li class="menu
kopie"><a href="abc" class="aMenu" target="_blank" >Discoverer Viewer Reports</a></li>
<li class="menu
kopie"><a href="abc" class="aMenu" target="_blank" >Raw Material</a></li>
</ul>
</li>
</ul>
</div>
</nav>
</div>
ul.navbar li {
float: left;
margin-right: 10px;
position: relative;
}
ul.navbar a {
display: block;
padding: 5px;
color: #ffffff !important;
background: #598059;
text-decoration: none;
border-radius: 0 6px 6px 6px;
}
ul.navbar a:hover {
color: #80ff80 !important;
background: #598059;
text-decoration: none;
box-shadow: 3px 3px 6px #ffffff inset;
}
/*--- DROPDOWN ---*/
ul.navbar ul, ul.navbar li:hover ul li ul {
list-style: none;
position: absolute;
display: none;
}
ul.navbar ul li {
padding-top: 0px;
float: none;
}
ul.navbar ul a {
white-space: nowrap;
}
ul.navbar li:hover ul {
display: block;
left: 0;
z-index: 10;
}
ul.navbar li ul li:hover ul {
display: block;
top: 0;
left: 100%;
z-index: 10;
}
ul.navbar li:hover a {
background: #DDE369;
text-decoration: none;
}
ul.navbar li:hover ul a {
text-decoration: none;
}
ul.navbar li:hover ul li a:hover {
background: #DDE369 !important;
}
.navbar-default .navbar-nav > li > a {
color: #fff;
font-weight:bold;
}
.dropdown-menu > li.kopie > a {
padding-left: 1px;
font-weight: 400;
font-family: Arial, Helvetica, sans-serif;
}
/* lets put it here for the menu bar */
.dropdown-menu > li.kopie > a {
padding-left: 1px;
font-weight: 600;
}
.dropdown-submenu {
position: relative;
}
.dropdown-submenu > .dropdown-menu {
top: 0;
left: 100%;
margin-top: -6px;
margin-left: -1px;
-webkit-border-radius: 0 6px 6px 6px;
-moz-border-radius: 0 6px 6px 6px;
border-radius: 0 6px 6px 6px;
}
.dropdown-submenu > a:after {
border-color: transparent transparent transparent #333;
border-style: solid;
border-width: 5px 0 5px 5px;
content: " ";
display: block;
float: right;
height: 0;
margin-right: -10px;
margin-top: 5px;
width: 0;
}
.dropdown-submenu:hover > a:after {
border-left-color: #555;
}
@media (max-width: 767px) {
.navbar-nav {
display: inline;
}
.navbar-default .navbar-brand {
display: inline;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #fff;
}
.navbar-default .navbar-nav .dropdown-menu > li > a {
color: red;
background-color: #ccc;
border-radius: 4px;
margin-top: 2px;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #ffffff;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
background-color: #ccc;
}
.navbar-nav .open .dropdown-menu {
border-bottom: 1px solid white;
border-radius: 0;
}
.dropdown-menu {
padding-left: 1px;
}
.dropdown-menu .dropdown-menu {
padding-left: 1px;
}
.dropdown-menu .dropdown-menu .dropdown-menu {
padding-left: 1px;
}
li.dropdown.open {
border: 0px solid red;
}
}
@media (min-width: 768px) {
ul.nav li:hover > ul.dropdown-menu {
display: block;
}
#navbar {
text-align: center;
}
}
.nav {
width: 100%;
padding: .5% 0;
background: #ffffff;
float: left;
text-align:center;
border-radius: 6px 6px 6px 6px;
box-shadow: 2px px 5px #000;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
}
.dropdown-menu > li > a {
display: block;
font-weight: 400;
white-space: nowrap;
font-size:small;
font-weight: bold;
display: block;
padding: 5px;
color: #0D5348 !important;
background: #fff;
border-radius: 0 6px 6px 6px;
font-family:Arial, Helvetica, sans-serif;
font-size:small;
}
.dropdown-menu > li > a:hover {
display: block;
font-weight: 400;
white-space: nowrap;
font-size:small;
font-weight: bold;
display: block;
padding: 5px;
color: #0D5348 !important;
background: #DDE369;
border-radius: 0 6px 6px 6px;
font-family:Arial, Helvetica, sans-serif;
font-size:small;
}
.menu {
background-color: white;
color: #DDE369;
font-weight: bold;
background-color: #0D5348;
font-weight: bold;
color: #FFF;
padding-top: 1px;
padding-bottom: 1px;
font-size:medium;
font-family: Arial, Helvetica, sans-serif;
}
.menu:hover {
background-color: #0D5348;
color: #DDE369;
font-weight: bold;
background-color: #0D5348;
font-weight: bold;
color: #FFF;
padding-top: 1px;
padding-bottom: 1px;
font-family: Arial, Helvetica, sans-serif;
font-size:medium;
}
.menu:focus {
background-color: #0D5348;
color: #DDE369;
font-weight: bold;
background-color: #0D5348;
font-weight: bold;
color: #FFF;
padding-top: 1px;
padding-bottom: 1px;
font-family: Arial, Helvetica, sans-serif;
font-size:medium;
}
.navbar-default .navbar-nav > li > a {
color: #fff;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
font-size:small;
}
.dropdown-menu > li.kopie > a {
padding-left: 1px;
/* font-weight: 600; */
}
.dropdown-submenu {
position: relative;
font-size:small;
}
.dropdown-submenu > .dropdown-menu {
top: 0;
left: 100%;
margin-top: -6px;
margin-left: -1px;
-webkit-border-radius: 0 6px 6px 6px;
-moz-border-radius: 0 6px 6px 6px;
border-radius: 0 6px 6px 6px;
font-family: Arial, Helvetica, sans-serif;
font-size:small;
}
.dropdown-submenu > a:after {
border-color: transparent transparent transparent #598059;
border-style: solid;
border-width: 5px 0 5px 5px;
content: " ";
display: block;
float: right;
height: 0;
margin-right: 0px;
margin-top: 5px;
width: 0;
font-family: Arial, Helvetica, sans-serif;
font-size:small;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav .dropdown .submenu .kopie > li > a:focus {
background-color: #277542;
color: #DDE369;
font-family: Arial, Helvetica, sans-serif;
font-size:small;
}
/* added later from another menu */
/* hnavbar */
ul.navbar {
list-style: none;
font-size: 16px;
font-weight: bold;
margin-bottom: 0;
/* Clear floats */
float: left;
width: 90%;
position: relative;
z-index: 5;
font-size:medium;
}
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav .dropdown .submenu .kopie > li > a:linked {
background-color: #277542;
color: #DDE369;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
}
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav .dropdown .submenu .kopie > li > a:visited {
background-color: #277542;
color: #DDE369;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
}
.navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:focus, .navbar-default .navbar-nav>.open>a:hover {
background-color: #277542;
color: #DDE369;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
}
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav .dropdown .submenu .kopie > li > a:active {
background-color: #277542;
color: #DDE369;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
}
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav .dropdown .submenu .kopie > li > a:focus {
background-color: #277542;
color: #DDE369;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
}
@media (min-width: 768px){
navbar.less:286
.navbar-nav>li>a {
padding-top: 5px;
padding-bottom: 5px;
}
}
.navbar-default .navbar-nav > li > a:focus {
color: #fff;
}
Also see: Tab Triggers