CSS float content changes parent position -


why button float:left or float:right content changes button vertical position? example http://jsfiddle.net/8ff6dhou/

<button>aaa</button> <button><div style="float:left">bbb</div></button> <button><div style="float:right">ccc</div></button> <button>ddd</button> 

why 4 buttons not @ same vertical position? how fix this?

add vertical-align button.

button{vertical-align:top;}  

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

c# - Abstract method in public abstract class implementing an internal interface doesn't compile? -

authentication - Mongodb revoke acccess to connect test database -