Script htmlnya di bawah ini:
<html>
<head>
<title>Membuat Tombol Sederhana Dengan
CSS</title>
</head>
<body>
<span class="button"><a href="#">button</a></span>
</body>
</html>
<head>
<title>Membuat Tombol Sederhana Dengan
CSS</title>
</head>
<body>
<span class="button"><a href="#">button</a></span>
</body>
</html>
Script CSS nya
<style type="text/css">
.button {
text-align:center;
}
.button a {
border-radius: 5px;
padding:5px 15px;
background:-webkit-linear-gradient(top, #0F3, #0C3);
color:#FFFFFF;
font-weight:bold;
font-family:Verdana, Geneva, sans-serif;
text-decoration:none;
}
.button a:hover {
background:#00FF66;
color:#FFF;
}
</style>
.button {
text-align:center;
}
.button a {
border-radius: 5px;
padding:5px 15px;
background:-webkit-linear-gradient(top, #0F3, #0C3);
color:#FFFFFF;
font-weight:bold;
font-family:Verdana, Geneva, sans-serif;
text-decoration:none;
}
.button a:hover {
background:#00FF66;
color:#FFF;
}
</style>
jika di gabungkan akan menjadi
<html>
<head>
<style type="text/css">
.button {
text-align:center;
}
.button a {
border-radius: 5px;
padding:5px 15px;
background:-webkit-linear-gradient(top, #0F3, #0C3);
color:#FFFFFF;
font-weight:bold;
font-family:Verdana, Geneva, sans-serif;
text-decoration:none;
}
.button a:hover {
background:#00FF66;
color:#FFF;
}
</style>
<title>Membuat Tombol Sederhana Dengan CSS</title>
</head>
<body>
<span class="button"><a href="#">button</a></span>
</body>
</html>
<head>
<style type="text/css">
.button {
text-align:center;
}
.button a {
border-radius: 5px;
padding:5px 15px;
background:-webkit-linear-gradient(top, #0F3, #0C3);
color:#FFFFFF;
font-weight:bold;
font-family:Verdana, Geneva, sans-serif;
text-decoration:none;
}
.button a:hover {
background:#00FF66;
color:#FFF;
}
</style>
<title>Membuat Tombol Sederhana Dengan CSS</title>
</head>
<body>
<span class="button"><a href="#">button</a></span>
</body>
</html>
0 komentar:
Posting Komentar