No-JS Tool tips
How do I make an no-js tool tips?
A simple no-js implementation of some tool tips. The tool tips will show on hover of the "i" & tab focus of the relitive link. What is a no-js tool tips? How do you make a no-js tool tips? This script and codes were developed by Chris Yaxley on 07 January 2023, Saturday.
No-JS Tool tips - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>No-JS Tool tips</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <article class="example-article"> <h1>September 2013 Chart</h1> <ol> <li> <a href="" title="">Ninetoes - Finder</a> <div class="tool-tip"> <i class="tool-tip__icon">i</i> <p class="tool-tip__info"> <span class="info"><span class="info__title">Label:</span> Kling Klong</span> <span><span class="info__title">Most popular month:</span> August 2013</span> </p> </div> </li> <li> <a href="" title="">Hot Natured feat. Anabel EnglundReverse - Skydiving</a> <div class="tool-tip"> <i class="tool-tip__icon">i</i> <p class="tool-tip__info"> <span class="info"><span class="info__title">Label:</span> Hot Creations</span> <span><span class="info__title">Most popular month:</span> August 2013</span> </p> </div> </li> <li> <a href="" title="">Full Intention - Icon</a> <div class="tool-tip"> <i class="tool-tip__icon">i</i> <p class="tool-tip__info"> <span class="info"><span class="info__title">Label:</span> Rebirth</span> <span><span class="info__title">Most popular month:</span> August 2013</span> </p> </div> </li> <li> <a href="" title="">Kenlou - The Bounce</a> <div class="tool-tip"> <i class="tool-tip__icon">i</i> <p class="tool-tip__info"> <span class="info"><span class="info__title">Label:</span> Strictly Rhythm</span> <span><span class="info__title">Most popular month:</span> March 2013</span> </p> </div> </li> <li> <a href="" title="">Plezier - Like</a> <div class="tool-tip"> <i class="tool-tip__icon">i</i> <p class="tool-tip__info"> <span class="info"><span class="info__title">Label:</span> Moda Black</span> <span><span class="info__title">Most popular month:</span> August 2013</span> </p> </div> </li> <li> <a href="" title="">Kruse & Nuernberg - Off Course (Stefano Ritteri remix)</a> <div class="tool-tip"> <i class="tool-tip__icon">i</i> <p class="tool-tip__info"> <span class="info"><span class="info__title">Label:</span> Rebirth</span> <span><span class="info__title">Most popular month:</span> August 2013</span> </p> </div> </li> <li> <a href="" title="">Ghost Poet - Cold Win (Lorca Remix)</a> <div class="tool-tip"> <i class="tool-tip__icon">i</i> <p class="tool-tip__info"> <span class="info"><span class="info__title">Label:</span> Play It Again Sam</span> <span><span class="info__title">Most popular month:</span> November 2007</span> </p> </div> </li> <li> <a href="" title="">Nina Kraviz - Pain In The Ass (Lewis Boardman Greatest Pain In Tha Arse remix)</a> <div class="tool-tip"> <i class="tool-tip__icon">i</i> <p class="tool-tip__info"> <span class="info"><span class="info__title">Label:</span> Rekids</span> <span><span class="info__title">Most popular month:</span> March 2013</span> </p> </div> </li> <li> <a href="" title="">Brodinski - Gimme Back the Night (Club Mix)</a> <div class="tool-tip"> <i class="tool-tip__icon">i</i> <p class="tool-tip__info"> <span class="info"><span class="info__title">Label:</span> Bromance</span> <span><span class="info__title">Most popular month:</span> March 2013</span> </p> </div> </li> <li> <a href="" title="">Legitimate Scandal - Fu Gee La</a> <div class="tool-tip"> <i class="tool-tip__icon">i</i> <p class="tool-tip__info"> <span class="info"><span class="info__title">Label:</span> Guesthouse Music</span> <span><span class="info__title">Most popular month:</span> March 2013</span> </p> </div> </li> </ol> </article> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
No-JS Tool tips - Script Codes CSS Codes
/************** Tool Tip Styles ********************************/
.tool-tip { display: inline-block; position: relative; margin-left: 0.5em;
}
.tool-tip .tool-tip__icon { background: #27b1f0; border-radius: 10px; cursor: pointer; display: inline-block; font-style: italic; font-family: times new roman; height: 20px; line-height: 1.3em; text-align: center; width: 20px;
}
.tool-tip .tool-tip__info { display: none; background: #262626; border: 1px solid #27b1f0; border-radius: 3px; font-size: 0.875em; padding: 1em; position: absolute; left: 30px; top: -20px; width: 250px; z-index: 2;
}
.tool-tip .tool-tip__info:before, .tool-tip .tool-tip__info:after { content: ""; position: absolute; left: -10px; top: 7px; border-style: solid; border-width: 10px 10px 10px 0; border-color: transparent #27b1f0;
}
.tool-tip .tool-tip__info:after { left: -8px; border-right-color: #262626;
}
.tool-tip .tool-tip__info .info { display: block;
}
.tool-tip .tool-tip__info .info__title { color: #fa00f3;
}
.tool-tip:hover .tool-tip__info, .tool-tip:focus .tool-tip__info { display: inline-block;
}
a:focus + .tool-tip .tool-tip__info { display: inline-block;
}
/******* Styles just to make it look a little better *******/
body{ background-color: #262626; color:#ffffff; font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
}
article{ background: #414141; border-radius: 5px; padding: 1em; margin: 1em;
}
i{ font-style: normal;
}
a{ color: white; text-decoration: none;
}
a:hover,
a:focus{ text-decoration: underline;
}
li{ margin: 5px 0;
}
Developer | Chris Yaxley |
Username | chrisyaxley |
Uploaded | January 07, 2023 |
Rating | 4 |
Size | 2,634 Kb |
Views | 8,096 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Social Share Sprite using SASS Each | 2,607 Kb |
No-JS Off Canvas Navigation | 4,805 Kb |
A Pen by Chris Yaxley | 1,497 Kb |
Google style image preview | 1,947 Kb |
3D Transforms CSS Carousel | 2,353 Kb |
Quick PostCodes.io test | 2,195 Kb |
Basic Mario Keyframes animation | 3,258 Kb |
Accessible custom CSS only Radio buttons | 2,836 Kb |
SVG Logo with CSS animations | 4,020 Kb |
Some modern CSS techniques | 5,991 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Responsive Boxes without Images | Andymcfee | 4,120 Kb |
Vue Transition | Chenming142 | 4,561 Kb |
Adding and Removing Element | Accimeesterlin | 2,119 Kb |
A Pen by Sooba | Sooba | 2,516 Kb |
WRENCH - STAFF | Lolita-adams | 1,608 Kb |
Part 19 Bootstrap split button dropdown | Venkatesha | 1,601 Kb |
Highbrow Basic HTML Lesson 8 | Kimlarocca | 2,094 Kb |
Gradients | Karpovsystems | 2,394 Kb |
Text Blocks Over Image, Updated | KatieK2 | 3,122 Kb |
Gulpfile | Aimhigherwebdesign-amy | 1,765 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!