<html> <head> <style> div { width:10px; height:10px; background-color:green; display: inline-block; } </style> </head> <body id="body"> <div id="first"></div><div id="second"></div> </body> </html>