You can also use inline-block
for layouts. There are a few things to keep in mind:
inline-block
elements are affected by thevertical-align
property, which you probably want set totop
.- You need to set the width of each column
- There will be a gap between the columns if there is any whitespace between them in the HTML