Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS minimum width and height</title> <style> div { float: left; min-width: 300px; min-height: 100px; background: #f9a8a4; } </style> </head> <body> <div>Play with the values to see how it works!</div> </body> </html>