<!DOCTYPE html> <html> <head> <title>HTML div</title> </head> <body> <div style="width: 100px; float:left; height:200px; background:gray; margin:10px; valign: middle"> First DIV </div> <div style="width: 100px; float:left; height:200px; background:yellow; margin:10px; valign: middle"> Second DIV </div> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more