div next to each other html css code example Example: display div next to eachother display: inline-block;