Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>CSS Set body Height to 100% of the Browser Window</title> <style> html { height: 100%; } body { margin: 0; background: yellow; min-height: 100%; /* height grows if content grows */ } </style> </head> <body> <div>Some dummy content...</div> </body> </html>