I have written some code to make the text glow, however the text glows not only when the cursor is over the text but also when the cursor is over the horizontal area extended by the text. Why does this happen and how can i make it glow only when the cursor is over the text?
<!DOCTYPE html>
<html>
<head>
<title>tTEXT</title>
</head>
<link rel="stylesheet" type="text/css" href="styles.css"/>
<body>
<style>
@font-face
{
font-family: ralewaythin;
src: url('Cantarell-Regular.ttf')
}
.backgroundimage
{
background-position: center;
}
.text-glow-hover-with-delay
{
color: black;
-webkit-transition: text-shadow 0.15s;
}
.text-glow-hover-with-delay:hover
{
text-shadow: 0 0 10px #4682b4;
}
.head
{
font-family: ralewaythin;
color: black;
font-size: 75px;
-webkit-text-stroke: 1px;
}
</style>
<div class="text-glow-hover-with-delay">
<div class="head">TEXT</div>
</div>
</body>
</html>