Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>Example</title> <style> div.bubbles { width: 80vw; height: 80vh; padding: 10px; background-image: url(/pix/samples/bubble2.gif); border: 1px solid black; background-size: contain; } </style> <div class="bubbles"> This element has a background image. The CSS uses the 'background-size' property to resize the background image. </div>