4 elements next to each other css code example Example: css 2 next to each other p { float: left; width: 30%; margin: 0 1%; }