Kevin Powell - CommunityKP-C
Kevin Powell - Community12mo ago
7 replies
Pat66

[SOLVED] Set an image in div

Hi everyone

I have a problem I want put an image an a div

<body>
       <div class="pic">
                  
                    
                  


       </div>
</body>


my css:
```css
.pic{
width: 300px;
height: 400px;
background-image: url('img/lol.jpg');
background-attachment: fixed;
background-position: center;
background-size: cover;
}

the result I have with cover
cover.jpg
Was this page helpful?