âš ī¸ Warning âš ī¸ Deprecated Code! This video tutorial contains outdated code.
💡 If you wish to update it, any AI assistant will update the code for you in seconds.

Multiple Background Images Tutorial

Published : November 17, 2014   •   Last Edited : November 24, 2025   •   Author : Adam Khoury
Learn to use CSS to apply multiple background images to most any HTML elements. This could also be used as a clean method of pre-loading images for Javascript or image galleries, so that images are ready for viewing right away.
<!DOCTYPE html>
<html>
<head>
<style>
#myDiv {
  width: 600px;
  height: 400px;
  background-image: url(adam.png), url(powerbird.png), url(backdrop.jpg);
  background-position: center, center top, left top;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
</style>
</head>
<body>
<h2>CSS3 Multiple Background Images</h2>
<div id="myDiv"></div>
</body>
</html>