I am designing a background for my page which will include air bubbles. I would like to put one bubble image into a lot of places on the screen. I use the following code in my HTML file:
<body>
<div class="bg">
<img id="bubble" src="images/bubble.png" />
</div>
Is there a way to put this bubble image into several places?
If you can direct me to another post (I couldn’t find any) or give me a solution I will appreciate it. Thanks in advance.
Note: Using a single background file with bubbles already in place is not an option.
Use a CSS style that defines a background-image for the bubble and apply the style to any page element you want to have a bubble. Also define styles to help position the elements.
There are several other background properties to help you get the affect you want; position, repeat, size, clip.