そして今その働き:)
html
<div id="post-wrap">
<div id="delete-button">
<button id="button-delete"><p> Remove </p></button>
</div>
</div>
CSS
#post-wrap {
position: relative;
margin: 20px 0px 0px 20px;
padding: 10px 10px 10px 10px;
height: auto;
min-height: 150px;
width: 200px;
border: 1px solid #ddd;
border-radius: 4px 4px 4px 4px;
background-color: #fff;
/* box-shadow: rgba(0, 0, 0, 0.247059) 0px 3px 8px 0px; */
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 3px 0px
}
#delete-button{
position: absolute;
right: 10px;
top: 10px;
margin: 0px 0px 0px 0px;
height: 30px;
width: 225px;
overflow: auto;
}
#button-delete {
cursor: pointer;
float: right;
height: 30px;
width: auto;
border: 1px solid #bbb;
border-radius: 4px 4px 4px 4px;
background-color: #eee;
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 3px 0px;
display:none;
}
#button-delete p {
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
font-family: calibri;
font-weight: bold;
font-size: 16px;
color: #444;
}
#post-wrap:hover #button-delete{
display:block;
}