I'm trying to make a border and inside having links horizontally , but when the mouse hovers over it the background extends like if I added vertical padding . See it for yourself.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>
Test
</title>
<style type = "text/css">
body {
background-color:purple;
border:5px white solid;
}
div
{
position:absolute;
left:150px;
top:10px;
color:white;
}
</style>
</head>
<body>
<p><h3><a href="http://google.com">Google</a></h3></p>
<div><p><h2 class="link"><a href="test">Test</a></h2></p></div>
</body>
</html>


Sign In
Create Account


Back to top









