How do I create a grey keyboard button in CSS?
i'm trying create keyboard button menu in css. need grey space bar on computer keyboard, basically. have information or direction on how can accurately?
thanks
here's whipped real quick think gives basics, can play around colors , sizes of borders want. copy code new html document , play around colors in css (.key li "off" version , .key li:hover "on mouse over" version)...
<!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>css test</title>
<style type="text/css">
body {
background-color:black;
}
.key li {
list-style:none;
margin-left:1px;
float:left;
height:20px;
font:bold 12px/20px verdana, geneva, sans-serif;
border-left:4px solid #006;
border-top:4px solid #09f;
border-right: 4px solid #009;
border-bottom: 4px solid #00f;
background-color: #ffffff;
border-radius:3px;
padding:0 5px 0 5px;
}
.key li:hover {
border-left:4px solid #00c;
border-top:4px solid #09f;
border-right: 4px solid #00f;
border-bottom: 4px solid #03f;
background-color: #c7e2fe;
}
</style>
</head>
<body>
<ul class="key">
<li>something</li>
<li>like</li>
<li>this?</li>
</ul>
</body>
</html>
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment