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

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -