Two boxes on same line

I want to create two boxes each with a different color. I have this

<div style='background-color:rgb(12,44,22);width:70px;padding:0px;height:70px;'>
<div style='background-color:rgb(112,244,22);width:70px;padding:0px;height:70px;'>

How can I do this so they are next to each other. The second box goes onto a new line

display: inline-block;


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.