I have a multi-page webpage divsthat works as info fields for the user.
All I want is when the user places his mouse cursor in the information box (hover over the div) to display a glow on it div, like the input text above, when you click on it. When the user leaves the area of this div, the glow should disappear.
How can i do this?
EDIT: My question seems to be the same as in other articles, but it is NOT! I want the same text input effect to be added to the div (same color, same shadow effect).
.pbox {
border: 1px solid;
width: 150px;
height: 100px;
display: table-cell;
text-align: center;
vertical-align: middle;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<br>
<input type="text" name="txt" class="form-control" style="width: 150px;">
<br>
<div class="pbox">
<b>Notice:</b>
<br>
You can't delete items without being logged-in.
</div>
Run code