I read a tutorial for creating a horizontal menu with a CSS-based curve, and I noticed that the anchor element ( <a> ) was set using float: left and display:block
I wonder what that does? Because when you add display:block to an inline element, you may notice a difference, but when you add float:left backwards, it is almost like adding anything else. Only small spaces between two connecting inline elements disappear with float:left .
So basically, what I want to know is the difference between the following classes, when several binding elements are placed sequentially one after another:
a.one { display:block; float:left; } a.two { float:left; } a.default { }
source share