CLE No-results

In this example below you will see how to do a CLE No-results with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by Angrycity, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright Angrycity ©
  • HTML
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>CLE No-results</title>
  
  
  
  
  
</head>

<body>

  <style type="text/css">



/* HEADER
_____________________________________________ */

.header{
   margin-bottom: 7px;
}
.Text1
{
    color: #cc0000!important;
}
.menu_header_div {
    background-color: #cc0000!important;
}

/* PAGE LAYOUT
_____________________________________________ */


.layout_title
{
	color: #fff;
	    background-color: #cc0000!important;
}



.layout_innercontent A
{
	color: #1f3e60;
    font-weight: bold;
}



/* LEFT NAV !important directive required
_____________________________________________ */
ul#left_nav li h3
{
	color: #fff!important;
	    background-color: #cc0000!important;
}


.left_nav_div A:HOVER
{

	background-color: #E8F0F1!important;
}



/* FOOTER
_____________________________________________ */



/* DEPARTMENT PAGE 
_____________________________________________ */




/*  NEW HOMEPAGE CATEGORY TABLES */

.tab_wrapper {
	width:700px;
}

.top_tab h5 {
	padding:0;
	margin:0;
	color:#fff;
	font-size:15px;
	padding-left:10px;
	line-height:2em;
}
.middle_cat {
	padding:0;
	margin:0;
	background-color:#fff;
	background-position:bottom;
	background-repeat:repeat-x;
	width:700px;
	min-height:150px;
	border-bottom:2px solid #ccc;
	float:left;
}
.cat_wrapper {
	width: 790px;
	padding: 0;
	margin: auto;
	margin-top: 15px;
	margin-bottom: 15px;
	border-top: 2px solid #aaa;
	border-bottom: 2px solid #aaa;
	float: left;
	padding-left: 5px;
}
.brand_wrapper {
	

}
.brand_wrapper img {
margin:5px;
padding:5px;
background-color:#fff;
  border:1px solid #ccc;
}
.cat_box {
	width: 150px;
	min-height: 200px;
	padding: 8px;
	float: left;
	padding-left: 28px;
}
.cat_box img {
border:1px solid #aaa;
	margin-top: 25px;
	width: 150px;
	height: 150px;
}
.cat_box ul {
	padding:0;
	margin:0;
	margin-top:5px;
	list-style-type:none;
}
.cat_box li {
	font-size:12px;
	line-height:1.3em;
}

.cat_box li a {
	font-weight:normal;
}
li.first_cat a  {
	text-transform:uppercase;
	font-weight:bold;
	font-size:13px;
}

li.view_more a  {
	text-transform:uppercase;
	font-size:10px;
	font-weight:bold;
}
.view_all   {
	font-size:14px;
	text-align:center;
	line-height:2em;
        text-transform:uppercase;
}
</style>

<table border="0" width="830">
  <tbody><tr>
    <td><img src="//images.1stoplighting.com/site/common/1stop/null-main.png" alt="We’re sorry. It seems as though we were not able to locate exactly what you were looking for. Please try your search again."></td>
    <td valign="middle"><a href="/content/contact-us/info.aspx"><img style="padding: 10px; margin-top: 25px; margin-left: 10px; border: medium none;" src="//images.1stoplighting.com/site/common/1stop/1stop-call-us.png" alt="Call us at 1-866-203-5392"></a>
    	<a href="mailto:sales@1stoplighting.com"><img style="padding: 10px; margin-left: 10px; border: medium none;" src="//images.1stoplighting.com/site/common/1stop/1stop-email.png" alt="Email us: Sales@1StopLighting.com"></a>
        <a href="/secure/request.aspx"><img style="padding: 10px; margin-left: 10px; border: medium none;" src="//images.1stoplighting.com/site/common/1stop/1stop-quote.png" alt="For large orders, send us a quote!"></a>
        <a href="/content/customerservice/info.aspx"><img style="padding: 10px; margin-left: 10px; border: medium none;" src="//images.1stoplighting.com/site/common/1stop/1stop-servicecenter.png" alt="Visit our Customer Service Center for further information"></a></td>
  </tr>
  <tr>
    <td style="padding-left: 25px; line-height: 1.3em;" valign="top"><p style="font-weight: bold;">What May Have Happened:</p>
    <ul>
    <li>The keyword/item number you specified is invalid or incomplete.</li>
    <li>The product may have been removed or is not yet active.</li>
    <li>We may not carry the brand you are looking for. Try searching for the brand.</li>
    </ul></td>
    <td valign="top"><p style="margin-left: 20px; font-size: 12px; line-height: 1.3em;"><span style="font-weight: bold;">Customer Service Hours:</span>
    <br>Monday - Friday: 5:00am - 8:00pm PST
    <br>Saturday & Sunday: 6:00am - 3:00pm PST</p></td>
  </tr>
</tbody></table><style type="text/css">
</style>
  <div class="middle_cat">
    <div class="cat_wrapper">
      <div class="cat_box"> <a href="/Ceiling-Fans/7-0-0-0/list.aspx"><img src="//images.canadalightingexperts.com/supplier/Kichler/products/300017BSS.jpg/120/120/1" alt="Shop Ceiling Fans - 300117AWD"></a>
        <ul>
          <li class="first_cat"><a href="/Ceiling-Fans/7-0-0-0/list.aspx">Ceiling Fans</a></li>
          <li><a href="/Ceiling-Fans_Contemporary/7-449-0-0/list.aspx">Contemporary</a></li>
          <li><a href="/Ceiling-Fans_Outdoor/7-297-0-0/list.aspx">Outdoor Fans</a></li>
          <li><a href="/Ceiling-Fans_Traditional/7-448-0-0/list.aspx">Traditional Fans</a></li>
          <li class="view_more"><a href="/Ceiling-Fans/7-0-0-0/list.aspx">view more</a></li>
        </ul>
      </div>
      <div class="cat_box"> <a href="/Chandeliers/2-0-0-0/list.aspx"><img src="//images.canadalightingexperts.com/supplier/Kichler/products/1673OZ.jpg/120/120/1" alt="Shop Chandeliers - 2020NI"></a>
        <ul>
          <li class="first_cat"><a href="/Chandeliers/2-0-0-0/list.aspx">Chandeliers</a></li>
          <li><a href="/Chandeliers_Foyer---Entry/2-412-0-0/list.aspx">Foyer/Entry</a></li>
          <li><a href="/Chandeliers_Island---Billiard/2-250-0-0/list.aspx">Island/Billiard</a></li>
          <li><a href="/Chandeliers_Traditional/2-94-0-0/list.aspx">Traditional</a></li>
          <li class="view_more"><a href="/Chandeliers/2-0-0-0/list.aspx">view more</a></li>
        </ul>
      </div>
      <div class="cat_box"> <a href="/Architectural-Track-Lighting/3-0-0-0/list.aspx"><img src="//images.canadalightingexperts.com/supplier/Tech-Lighting/products/700KHELLO.jpg/120/120/1" alt="Shop Monorail track and systems - 800RAL28NXZ"></a>
        <ul>
          <li class="first_cat"><a href="/Architectural-Track-Lighting/3-0-0-0/list.aspx">Monorail/Track</a></li>
          <li><a href="/Architectural-Track_Monorail-Systems/3-386-0-0/list.aspx">Monorail Systems</a></li>
          <li><a href="/Architectural-Track_Monorail-2-Circuit/3-388-0-0/list.aspx">Monorail 2-Circuit</a></li>
          <li><a href="/Architectural-Track_Standard-Track/3-500-0-0/list.aspx">Standard Track</a></li>
          <li class="view_more"><a href="/Architectural-Track-Lighting/3-0-0-0/list.aspx">view more</a></li>
        </ul>
      </div>
      <div class="cat_box"> <a href="/Childrens-Lighting/9-0-0-0/list.aspx"><img src="//images.canadalightingexperts.com/supplier/Elk-Lighting/products/50954.jpg/120/120/1" alt="Shop Childrens Lighting - 401535548"></a>
        <ul>
          <li class="first_cat"><a href="/Childrens-Lighting/9-0-0-0/list.aspx">Kids/Novelties</a></li>
          <li><a href="/Childrens_Lamps/9-429-0-0/list.aspx">Lamps</a></li>
          <li><a href="/Childrens_Sports/9-120-0-0/list.aspx">Sports Themed</a></li>
          <li><a href="/Childrens_Ceiling-Lights/9-205-0-0/list.aspx">Ceiling Lights</a></li>
          <li class="view_more"><a href="/Childrens-Lighting/9-0-0-0/list.aspx">view more</a></li>
        </ul>
      </div>
      <div class="cat_box"> <a href="/Floor-Lamps/1-0-0-0/list.aspx"><img src="//images.canadalightingexperts.com/supplier/Uttermost/products/28514.jpg/120/120/1" alt="Table lamps, Floor lamps - 74256"></a>
        <ul>
          <li class="first_cat"><a href="/Floor-Lamps/1-0-0-0/list.aspx">Lamps</a></li>
          <li><a href="/Table-Lamps/12-0-0-0/list.aspx">Table Lamps</a></li>
          <li><a href="/Floor-Lamps/1-0-0-0/list.aspx">Floor Lamps</a></li>
          <li><a href="/Table-Lamps_Swing-Arm---Task/12-35-0-0/list.aspx">Swing Arm - Tasks</a></li>
          <li class="view_more"><a href="/Floor-Lamps/1-0-0-0/list.aspx">view more</a></li>
        </ul>
      </div>
      <div class="cat_box"> <a href="/Outdoor-Lighting/4-0-0-0/list.aspx"><img src="//images.canadalightingexperts.com/supplier/Kichler/products/9023BK.jpg/120/120/1" alt="Shop Outdoor Lighting - 9023BK"></a>
        <ul>
          <li class="first_cat"><a href="/Outdoor-Lighting/4-0-0-0/list.aspx">Outdoor</a></li>
          <li><a href="/Outdoor_Ceiling-and-Hanging/4-10-0-0/list.aspx">Ceiling &amp; Hanging</a></li>
          <li><a href="/Outdoor_Post-Lights/4-11-0-0/list.aspx">Post Lights</a></li>
          <li><a href="/Outdoor_Wall-Mount/4-9-0-0/list.aspx">Wall Mount</a></li>
          <li class="view_more"><a href="/Outdoor-Lighting/4-0-0-0/list.aspx">view more</a></li>
        </ul>
      </div>
      <div class="cat_box"> <a href="/Pendant-Lighting/14-0-0-0/list.aspx"><img src="//images.canadalightingexperts.com/supplier/Kichler/products/42437AP.jpg/120/120/1" alt="Shop Pendant Lighting - 42047CH"></a>
        <ul>
          <li class="first_cat"><a href="/Pendant-Lighting/14-0-0-0/list.aspx">Pendants</a></li>
          <li><a href="/Pendants_Bowl-Pendants/14-509-0-0/list.aspx">Bowl Pendants</a></li>
          <li><a href="/Pendants_Larger-Pendant/14-114-0-0/list.aspx">Large Pendants</a></li>
          <li><a href="/Pendants_Mini-Pendants/14-455-0-0/list.aspx">Mini Pendants</a></li>
          <li class="view_more"><a href="/Pendant-Lighting/14-0-0-0/list.aspx">view more</a></li>
        </ul>
      </div>
      <div class="cat_box"> <a href="/Wall-Lighting-Sconces/6-0-0-0/list.aspx"><img src="//images.canadalightingexperts.com/supplier/Kichler/products/45358CH.jpg/120/120/1" alt="Shop Wall Lighting and Wall Sconces - 45281AP"></a>
        <ul>
          <li class="first_cat"><a href="/Wall-Lighting-Sconces/6-0-0-0/list.aspx">Wall Lighting</a></li>
          <li><a href="/Wall-Sconces_Contemporary/6-86-0-0/list.aspx">Contemporary</a></li>
          <li><a href="/Wall-Sconces_Crystal/6-69-0-0/list.aspx">Crystal</a></li>
          <li><a href="/Wall-Sconces_Traditional/6-87-0-0/list.aspx">Traditional</a></li>
          <li class="view_more"><a href="/Wall-Lighting-Sconces/6-0-0-0/list.aspx">view more</a></li>
        </ul>
      </div>
    </div>
  </div>
</div>
  
  

</body>

</html>

Comments