게시물에 버튼 넣기 오류
본문
게시물에 색깔 버튼를 넣으려고
이 파일에 아래 코드를 넣고
.myButton {
box-shadow: 3px 7px 6px 1px #f29c93;
background-color:#fe1a00;
border-radius:34px;
border:1px solid #d83526;
display:inline-block;
cursor:pointer;
color:#ffffff !important ;
font-family:Times New Roman;
font-size:28px;
font-weight:bold;
padding:12px 41px;
text-decoration:none !important;
text-shadow:2px -1px 50px #b23e35;
}
.myButton:hover {
background-color:#ce0100;
}
.myButton:active {
position:relative;
top:1px;
}
게시글 html 에서 아래코드를 넣었더니
<p style="text-align: center;" data-ke-size="size16"><a class="myButton" style="width: 80%;" href=" " target="_self"> 버튼 바로가기</a></p>
이렇게 나옵니다
무엇이 문제일까요?
도와주세요~~!!! ㅠㅜ
답변 1
<style>
.myButton {
background-color: #007bff;
border: 1px solid #0056b3;
box-shadow: 3px 7px 6px 1px #4a90e2;
text-shadow: 2px -1px 50px #004085;
display: block;
width: 80%;
margin: 0 auto;
text-align: center;
color: #ffffff !important;
font-family: Times New Roman;
font-size: 28px;
font-weight: bold;
padding: 12px 41px;
text-decoration: none !important;
border-radius: 34px;
cursor: pointer;
}
.myButton:hover {background-color: #0056b3;}
.myButton:active {position: relative;top: 1px;}
</style>
<p style="text-align: center;"><a class="myButton" href="#" target="_self">버튼 바로가기</a></p>