Quantcast
Channel: CSSタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8582

background-imgに疑似要素を使う場合

$
0
0

背景画像の上にロゴを載せる場合などに使える
(SCSS使用の場合)

&::after {
content: '';
background-image: url('../img/background-img/logo-white.png');
background-size: contain;
background-position: center;
height: 50%;
width: 50%;
position: absolute;
top: 25%;
left: 25%;
}


Viewing all articles
Browse latest Browse all 8582

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>