Created
July 27, 2019 01:31
-
-
Save yheihei/39800b54c8c3ec10d578a73805fcbc3b to your computer and use it in GitHub Desktop.
Bad css design3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#blog-post a.button { | |
display:inline-block; | |
padding: 0.5rem 1rem; | |
background-color: #007bff; | |
color: white; | |
font-weight:bold; | |
text-decoration:none; | |
border-radius: 4px; | |
} | |
#blog-archives a.button{ | |
display:inline-block; | |
padding: 0.5rem 1rem; | |
background-color: red; | |
color: white; | |
font-weight:bold; | |
text-decoration:none; | |
border-radius: 4px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="blog-post"> | |
<h2>今日の日記</h2> | |
<p>本文本文本文</p> | |
<a href="" class="button">続きを読む</a> | |
</div> | |
<h2>ブログ一覧</h2> | |
<div id="blog-archives"> | |
<h3>昨日の日記</h3> | |
<p>本文本文本文...</p> | |
<a href="" class="button">続きを読む</a> | |
<h3>一昨日の日記</h3> | |
<p>本文本文本文...</p> | |
<a href="" class="button">続きを読む</a> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment