|
||
|
||
HTML Background Image CodeThis page contains the HTML code for setting a background image on your webpage. This background image code can be used on any HTML element - you choose! For example, you can set a background image for a table cell, or a This code sets a background image: This results in:
This box has a background image.
Fixed Background ImageYou can use the This results in:
This example shows how a background image can be set to a fixed position
- even though its containing block scrolls.
The contents of this box forces scroll bars to appear. When you scroll, you'll notice the image remains fixed.
Shorthand Background CodeYou can use the CSS This results in:
This box has had its all it's background properties set using the 'background' property. The background property is shorthand for setting many properties at once.
© Copyright 2006 - 2024 Code-Generator.net | Privacy Policy |