I have a div, and I want to place a button center of that.
1-What code should I use for button? <p?> <span?> <button?> (I think is not good. I want a tag that doesn't have any border and clicking action)
2-How to place it center of the div?
(I want to give a background color to that button, and because of that when I used the background color took all of that line)
.box {
width: 280px;
height: 300px;
background-color: rgb(221, 20, 20);}
.button {
background-color: rgba(57, 133, 57, 0.1);
font-size: 13px;
}
<div class="box">
<p class="button">Read More</p></div>