how to display div elements horizontally code example Example: css display div horizontally .horizontalBlocks { display: inline-block; }