html5 - Puting <div>s next to each other -


i have been searching way put divs next eachother , found 1 "worked" there issue

float: left; 

it worked! popped them out of parent div , looks silly. background of parent div no longer cares them.

how can put 2 divs, side side, while in div?

remove float , try :

display: inline-block; 

Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -