<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatib1e" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> < link rel="stylesheet" href="style.css"> <title>Document</title> </head> <body> <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo, mollitia.</p> <div></div> </body> </html> file style.css background-color: yellowgreen; width: 500px; height: 200px; position: relative; top: 20px; } div{ background-color: turquoise; width: 150px; height: 150px; position: relative; bottom: 20px; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter