Description
Liven up boring solid colour backgrounds by using a small gif image with rotating colours.
Demo
Animated background
This is a container with some content
CSS
- #demo_background {
- background-image: url('bg.gif');
- border: 1px solid black;
- background-color: #0C2C0E;
- }
-
- #demo_background h5 {
- color: white;
- padding: 10px;
- background-color: black;
- }
-
- #demo_background p {
- margin-left: auto;
- margin-right: auto;
- margin-top: 20px;
- width: 700px;
- height: 600px;
- background-color: #000;
- color: #fff;
- padding: 5px;
- text-align: left;
- font-family: Tahoma, Arial;
- font-size: 100%;
- position: relative;
- }
XHTML
- <div id="demo_background">
- <h5>Animated background</h5>
- <p>
- This is a container with some content
- </p>
- </div>