<!DOCTYPE HTML> <style> html, body { margin: 0; padding: 0 } div { display: inline-block; margin: 10px; width: 20px; height: 20px } </style ><div style="background: fuchsia"></div ><div style="background: aqua"></div ><div style="background: yellow"></div>