Design Tooltip CSS & HTML JAJASCRIPT
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Tooltip</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.
com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/
jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7
/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/
bootstrap.min.js"></script>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
</head>
<body>
<br>
<h3 class="text-center text-bold text-danger">Tooltip Example</h3>
<hr>
<div class="text-center">
<br>
<br>
<a href="#" data-toggle="tooltip" data-placement="right"data-html="true"
title='<h3 class="text-bold text-danger">SOENG SOUY</h3>
Hi Every one is me that is Tooltip thank you
for click me.<hr><i class="fab fa-youtube"></i>
<i class="fab fa-facebook-f"></i>
<i class="fab fa-twitter"></i>
'><i class="fas fa-american-sign-language-interpreting"></i>
</a>
</div>
<br>
<br>
<br>
<style>
hr{
border: 1px solid red;
}
.fa-american-sign-language-interpreting{
font-size: 48px;
}
.fa-youtube{
font-size: 20px;
color:red;
}
.fa-facebook-f{
font-size: 20px;
color: rgb(0, 131, 245);
}
.fa-twitter{
font-size: 20px;
color: rgb(45, 141, 224);
}
.tooltip-inner{
max-width: 236px !important;
padding: 10px 15px 10px 20px;
background: white;
color: rgb(0,0,0);
border: 1px solid red;
box-shadow: 5px 10px #2422226c;
}
</style>
<script>
$(document).ready(function()
{
$('[data-toggle="tooltip"]').tooltip();
});
</script>
</body>
</html>
0 Comments
CAN FEEDBACK
Emoji