Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!doctype html> <title>Example</title> <style> .imageRepeatBox { height: 150px; border: 1px solid black; padding: 10px; background-image: url("/pix/samples/bg1.gif"); background-repeat: no-repeat; } </style> <div class="imageRepeatBox"> <p>This div element has a background-image with background-repeat set to no-repeat.</p> <p>You can also try using repeat-x or repeat-y.</p> <p>To position the image, see <a href="/css/properties/css_background-position.cfm">background-position</a></p> </div>