上記の画像を以下の画像のように文字を大きさの違うものを並べてボタンを作成したいです。
ご教授よろしくお願いします!(グラデーションの色合いなどは除く)
html
<div class="list_like_button"><span>♥</span>お気に入り</div>
CSS
.list_like_button { position:absolute; bottom:-27px; right:3px; font-size: 12px; color: #4e4e4e; height:27px; padding:0 5px; line-height:27px; vertical-align:middle; width:90px; /*IE6 IE7 */ filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startcolorstr=#ffffff, endcolorstr=#b5b5b5)); /* IE8 IE9 */ -ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startcolorstr=#ffffff, endcolorstr=#b5b5b5))"; zoom: 1; background: -moz-linear-gradient( top, #ffffff 0%, #ebebeb 50%, #b5b5b5); background: -webkit-gradient( linear, left top, left bottom, from(#ffffff), color-stop(0.50, #ebebeb), to(#b5b5b5)); -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; border: 1px solid #949494; -moz-box-shadow: 0px 1px 3px rgba(000,000,000,0), inset 0px 0px 2px rgba(255,255,255,0.8); -webkit-box-shadow: 0px 1px 3px rgba(000,000,000,0), inset 0px 0px 2px rgba(255,255,255,0.8); box-shadow: 0px 1px 3px rgba(000,000,000,0), inset 0px 0px 2px rgba(255,255,255,0.8); z-index:999 !important; } .list_like_button span{ color:#999; font-size:24px; vertical-align:middle; margin-right:3px; line-height:20px; }
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。