programming-examples/css/Button element hover.html
2019-11-15 12:59:38 +01:00

43 lines
1.2 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Button element hover</title>
<style type="text/css" media="Screen">
* .button {
margin: 1;
padding: 4px 12px;
font-size: 16px;
color: grey;
cursor: pointer;
border-left: 2px solid blue;
border-right: 2px solid black;
border-top: 2px solid green;
border-bottom: 2px solid black;
}
* .button:hover,* .button.hover {
border-left: 2px solid blue;
border-right: 2px solid orange;
border-top: 2px solid red;
border-bottom: 2px solid pink;
}
</style>
</head>
<body>
<form id="form1" method="post" action="">
<input type="text" id="search" name="search" class="search" value="Search" />
<input type="submit" id="submit1" name="submit1" value="button1" />
<input type="submit" id="submit2" name="submit3" value="button2" />
<input type="submit" id="submit3" name="submit2" class="button" value="button3" />
<input type="reset" id="reset1" name="reset1" class="button" value="reset" />
</form>
</body>
</html>