Adding Divi modules next to each other is possible through a bit of custom CSS coding, please follow the steps below:
Access one of the modules and go to the Advanced tab.
Look for the Custom CSS option
In the Main Element field, enter the following CSS code:
display: inline-block;
By default, the modules will be closely aligned. To create some space between them, consider adjusting the margins of the Divi modules. You can do this by:
Access the module in Settings > Advanced > Spacing.
Adding a margin (e.g., left or right margin of 10px) to one of the modules.