0

In order to align two block elements I can use float left or inline-block. Is there any advantage using inline-block? Has it got a better performance when the page is rendered if I use more inline-block then float commands?

HTML

<div class="logo"></div>
<nav >  .... </nav>

CSS

nav, .logo{

  float: left;
}

or

nav,  .logo{

  display: inline-block;
}
user2952265
  • 1,590
  • 7
  • 21
  • 32
  • http://stackoverflow.com/questions/11805352/floatleft-vs-displayinline-vs-displayinline-block-vs-displaytable-cell – Nicolae Olariu Jul 21 '14 at 14:39
  • inline-block basically turns an element into the equivalent of a ``. Float will literally try to jam the element as far left as possible, even if that "rips" it away from where it normally would be drawn. The two are NOT equivalent. – Marc B Jul 21 '14 at 14:39

0 Answers0