How to call image in background with css

CSS

<style type="text/css">
.background-img {
width: 500px;
height: 300px;
background: url(background.jpg) left top no-repeat;
}

</style>

HTML

<div class="background-img"></div>
Share on Google Plus

About Amit

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment