1.Membuat Tombol Button Dengan Menggunakan PHP Dan CSS
<!Doctype html>
<html>
<head>
<title>Tombol Button</title>
<style>
h1{
margin-top: 100px;
text-align: center;
}
.button{
border:none;
color:blue;
padding: 8px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
margin: 4px 2px;
transition-duration: 0.45;
cursor: pointer;
}
.button1{
background-color: #008CBA;
color: white;
}
.button1:hover{
background-color: white;
color: black;
border: 2px solid red;
}
.button2{
background-color: green;
color: white;
}
.button2:hover{
background-color: white;
color: black;
border: 2px solid red;
}
.button3{
background-color: red;
color: white;
}
.button3:hover{
background-color: white;
color: black;
border: 2px solid red;
}
.button4{
background-color: black;
color: white;
}
.button4:hover{
background-color: white;
color: black;
border: 2px solid red;
}
</style>
</head>
<body>
<h1>Membuat Tombol-Tombol Button</h1>
<center>
<button style="border-radius: 8px;margin-top: 10%;" class="button button1">Lanjut Baca</button>
<button style="border-radius: 8px;margin-top: 10%;" class="button button2">Lanjut Baca</button>
<button style="border-radius: 8px;margin-top: 10%;" class="button button3">Lanjut Baca</button>
<button style="border-radius: 8px;margin-top: 10%;" class="button button4">Lanjut Baca</button>
</center>
</body>
</html>
No comments