![](https://cxg-design.jp/wp-content/uploads/2024/04/cssbanner03.png)
CSS BACKGROUND COVER
バックグラウンドイメージ、全面表示のCSSコードです。
about-main-image2クラスに高さ220px、幅100%で画像が切り取られて表示されます。
#pg-about .about-main-image2{
width:100%;
height:220px;
border-radius:0%;
overflow: hidden;
margin:auto;
will-change: transform;
background-image: url("../images/about_main003.jpg");
background-repeat: no-repeat;
background-position:50% 55%;
background-size: cover;
margin-top:5em;
}