JSFiddle - React, Tailwind, and code Playground

by smlombardi

HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Diamond Jewelry, Engagement Rings, Wedding Bands, Jewelry and Clock Repair - De's Jewelers</title>
<!-- TemplateEndEditable -->
<meta name="Keywords" content="Dutchess County, Poughkeepsie, NY, New York, Diamond Engagement Rings, Wedding Bands, Diamond Jewelry, Chamilia, Howard Miller Clocks, Pearls, Watches, Gifts, Presentations, Jewelry and Clock Repair" />
        <meta name="Description" content="De's Jewelers - Diamond Engagement Rings, Wedding Bands, Diamond Jewelry, Chamilia, Howard Miller Clocks, Watches, Gifts, Presentations, Jewelry and Clock Repair" />
<link href="../styles.css" rel="stylesheet" type="text/css" />
<script src="../swfobject.js" type="text/javascript"></script>
<!--[if gte IE 5.5]>
<script language="JavaScript" src="dhtml.js" type="text/JavaScript"></script>
<![endif]-->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<link href="../dhtml-horiz.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="container">
    <div class="header"> <img src="../images/logobar.jpg" width="800" height="114" alt="De's Jewelers" /> 
    
    <div id="menus">
    <ul id="navmenu">
    <li><a href="#">Bridal</a>
        <ul>
        <li><a href="#">Engagement Rings</a></li>
        <li><a href="#">Diamond Wedding Bands</a></li>
        <li><a href="#">Wedding Bands</a></li>
        </ul>
    </li>
    <li><a href="#">Diamond Jewelry</a>
        <ul>
        <li><a href="#">Diamond Bracelets</a></li>
        <li><a href="#">Diamond Earrings</a></li>
        <li><a href="#">Diamond Pendants</a></li>
        <li><a href="#">Diamond Rings</a></li>
        </ul>
    </li>
    <li><a href="#">Jewelry</a>
        <ul>
        <li><a...

CSS

@font-face {
    font-family: 'ElphinstoneRegular';
    src: url('elphinstone_alt-webfont.eot');
    src: url('elphinstone_alt-webfont.eot?#iefix') format('embedded-opentype'),
         url('elphinstone_alt-webfont.woff') format('woff'),
         url('elphinstone_alt-webfont.ttf') format('truetype'),
         url('elphinstone_alt-webfont.svg#ElphinstoneRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}


/* Root = Horizontal, Secondary = Vertical */
ul#navmenu {
  margin: 0;
  border: 0 none;
  padding: 0;
  width: 800px; /*For KHTML*/
  list-style: none;
  height: 24px;
}

ul#navmenu li {
  margin: 0;
  border: 0 none;
  padding: 0;
  float: left; /*For Gecko*/
  display: inline;
  list-style: none;
  position: relative;
  height: 24px;
}

ul#navmenu ul {
  margin: 0;
  border: 0 none;
  padding: 0;
  width: 170px;
  list-style: none;
  display: none;
  position: absolute;
  top: 24px;
  left: 0;

}

ul#navmenu ul:after /*From IE 7 lack of compliance*/{
  clear: both;
  display: block;
  font: 1px/0px serif;
  content: ".";
  height: 0;
  visibility: hidden;
}

ul#navmenu ul li {
  width: 160px;
  float: left; /*For IE 7 lack of compliance*/
  display: block !important;
  display: inline; /*For IE*/
}

/* Root Menu */
ul#navmenu a {
  border: 1px solid #FFF;
  padding: 0 10px 2px 10px;
  float: none !important; /*For Opera*/
  float: left; /*For IE*/
  display: block;
  background: #fff;
  color: #000;
  font: 16px/22px ElphinstoneRegular, Arial, Helvetica, sans-serif;
  text-decoration: none;
  text-align: left;
  height: auto !important;
  height: 1%; /*For IE*/
}

/* Root Menu Hover Persistence */
ul#navmenu a:hover,
ul#navmenu li:hover a,
ul#navmenu li.iehover a {
  background: #A8E1E9;
  color: #000;
}

/* 2nd Menu */
ul#navmenu li:hover li a,
ul#navmenu li.iehover li a {
  float: none;
  background: #A8E1E9;
  color: #000;
}

/* 2nd Menu Hover Persistence */
ul#navmenu li:hover li a:hover,
ul#navmenu li:hover li:hover a,
ul#navmenu...

JavaScript

navHover = function() {
    var lis = document.getElementById("navmenu").getElementsByTagName("LI");
    for (var i=0; i<lis.length; i++) {
        lis[i].onmouseover=function() {
            this.className+=" iehover";
        }
        lis[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" iehover\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", navHover);