Skip to content

Instantly share code, notes, and snippets.

@closer
Created February 19, 2010 15:05
Show Gist options
  • Select an option

  • Save closer/308767 to your computer and use it in GitHub Desktop.

Select an option

Save closer/308767 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="ja">
<head>
<title>CSS3</title>
<style type="text/css">
ul.menu {
margin:0;
padding:0;
width:30.0em;
list-style:none;
list-style-position:outside;
-webkit-box-shadow: 0px 1px 4px #000;
-webkit-border-radius:5px;
overflow:hidden;
}
ul.menu li {
float:left;
width:10.0em;
overflow:hidden;
}
ul.menu li a {
display:block;
padding:1.0em 1.5em;
border-left:1px solid #000;
background-color:#F00;
background-image: -webkit-gradient(linear, left top, left bottom,
color-stop(0, rgba(0, 0, 0, .2)),
color-stop(50%, rgba(0, 0, 0, .4)),
color-stop(100%, rgba(0, 0, 0, .6)));
text-shadow:0px 1px 0px #666;
color:#FFF;
text-decoration:none;
font-weight:bold;
-webkit-transition: background-color .4s;
}
ul.menu li a:hover {
background-color: #00F;
}
</style>
</head>
<body>
<ul class="menu">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Link</a></li>
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment