22 Aug 2015

How to apply MULTIPLE BACKGROUND IMAGES using HTML and CSS

First create HTML file as given here:

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="css/primary.css">
    </head>
    <body>
        <div id='container'>
        </div>
    </body>
</html>

Create CSS file as given here and attach file which given here:

#container{
    width: 680px;
    height: 380px;
    background: url('../images/tick.png') no-repeat 50% 50%, url('../images/bubble.png') no-repeat;
}

Share:

0 comments:

Post a Comment