Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>My Example</title> <div style="background:url('/pix/smile.gif') repeat fixed; overflow:scroll; width:200px; height:100px;"> <p>This example shows how a background image can be set to a fixed position, even though its containing block scrolls. This example uses the <a href="/css/properties/css_background.cfm"><code>background</code></a> (shorthand) property.</p> </div>