コンテンツエリアにカスタムリンクを維持できません。私は、このHTMLCSSボタンを親DIV内に完全に保持するにはどうすればよいですか?
#createBtn {
margin-bottom: 20px;
width: 100%;
padding: 15px;
border-radius: 5px;
border: 1px solid #7ac9b7;
background-color: #4180C5;
color: aliceblue;
text-decoration: none;
font-size: 15px;
cursor: pointer;
white-space: nowrap;
}
<div id="userNotificationsWrapper">
<p>You have no notifications.</p>
<div><a id="createBtn" data-method="get" href="/user_notifications/new">Create Notification</a></div>
</div>
を持っていますが、リンク/ボタンは、私のコンテンツ領域(ID = "userNotificationsWrapper" とDIV)の下の境界線の上にいっています。コンテンツエリアにリンク/ボタンを完全にキャプチャして、メッセージの後の次の行に整列させたいと思います。
私は問題を実証するためにフィドルを作成しました - https://jsfiddle.net/b3hxko01/。
画像の画面が短いと説明できますか? –