<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- fontawesome -->
<link href="https://use.fontawesome.com/releases/v5.0.10/css/all.css" rel="stylesheet">
<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js"></script>
<link href="btn-style.css" rel="stylesheet">
<title>タイトル</title>
<link rel="shortcut icon" href="favicon.ico">
</head>
<body>
<div class="container">
<div class="btn-1">
ボタンはこちら1
</div>
<div class="btn-2">
ボタンはこちら2<i class="fas fa-caret-right"></i>
</div>
<div class="btn-3">
ボタンはこちら3<i class="fas fa-caret-right"></i>
</div>
<div class="btn-4">
ボタンはこちら4
</div>
<div class="btn-5">
ボタンはこちら5
</div>
<div class="btn-6">
<span>ボタンはこちら6</span>
</div>
<div class="btn-7">
<span>ボタンはこちら7</span>
</div>
<div class="btn-10">
ボタンはこちら10<i class="fas fa-caret-right"></i>
</div>
<div class="btn-9">
ボタンはこちら9
</div>
<div class="btn-11">
<a href="リンクはこちら">
ボタンはこちら11
</a>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>
body{
font-family: Yu Gothic;
}
/*共通*/
/* 幅が 767px 以下のとき */
@media (max-width:767px) {
.container{
width:100%;
}
}
/* 幅が 768px 以上のとき */
@media (min-width:768px) {
.container{
width:100%;
text-align: center;
margin:0 auto;
}
}
.btn-1{
width: 150px;
margin:0 auto;
background-color: #3F51B5;
color: white;
font-size:16px;
font-weight: bold;
padding:15px 93px 14px 16px;
border-radius:3px;
}
.btn-2{
width: 230px;
margin:20px auto 0 auto;
background-color: #3F51B5;
color: white;
font-size:16px;
font-weight: bold;
padding:15px 11.9px 14px 16px;
border-radius:3px;
}
.btn-2 .fa-caret-right{
float: right;
height: 26px;
}
.btn-3{
width: 230px;
margin:20px auto 0 auto;
background-color: #3F51B5;
color: white;
font-size:16px;
font-weight: bold;
padding:15px 11.9px 14px 16px;
border-radius:3px;
}
.btn-3 .fa-caret-right{
width: 18px;
height: 16px;
}
.btn-4{
width: 230px;
margin:20px auto 0 auto;
background-color: #3F51B5;
color: white;
font-size:16px;
font-weight: bold;
padding:15px 11.9px 14px 16px;
border-radius:3px;
border-bottom:5px solid #25379B;
text-align: center;
}
.btn-5{
width: 230px;
margin:20px auto 0 auto;
background: linear-gradient(#3F51B5, #20295B);
color: white;
font-size:16px;
font-weight: bold;
padding:15px 11.9px 14px 16px;
border-radius:3px;
text-align: center;
}
.btn-6{
width: 100%;
margin-top:20px;
background-color: #333333;
border:1px solid #707070;
text-align: center;
height: 104px;
align-items: center;
display: flex;
}
.btn-6 span{
border:2px solid white;
width: 230px;
margin:26px auto 28px auto;
color: white;
font-size:16px;
font-weight: bold;
padding:15px 11.9px 14px 16px;
text-align: center;
}
.btn-7 {
margin:20px 0 0 20%;
display: inline-block;
text-decoration: none;
background: #3F51B5;
color: white;
width: 123px;
height: 123px;
border-radius: 50%;
text-align: center;
overflow: hidden;
position: relative;
}
.btn-7 span {
font-weight: bold;
position: absolute;
top:0;
left:0;
width: 64px;
height: 47px;
padding:38px 30px 38px 29px;
}
.btn-10{
width: 230px;
margin:20px auto 0 auto;
background-color: #3F51B5;
color: white;
font-size:16px;
font-weight: bold;
padding:15px 11.9px 14px 16px;
border-radius:115px;
}
.btn-10 .fa-caret-right{
float: right;
height: 26px;
}
.btn-9{
width: 230px;
margin:20px auto 0 auto;
background-color: #3F51B5;
color: white;
font-size:16px;
font-weight: bold;
padding:15px 11.9px 14px 16px;
border-radius:3px;
border-bottom:5px solid #25379B;
text-align: center;
}
.btn-11 a {
width: 200px;
background-color: #333;
border-radius: 5px;
box-shadow: 0 3px 0 rgba(0,0,0,0.3);
color: #ffffff;
display: block;
font-size: 14px;
text-align: center;
text-decoration: none;
margin: 10px auto;
padding: 10px 0;
}
.btn-11 a:hover {
box-shadow: none;
transform: translate3d(0, 2px, 0);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.