So, I read the solutions that the distance between the aisles will decrease when using the built-in block, not floats: display: additional stock of the additional block and http://css-tricks.com/fighting-the-space-between-inline- block-elements / .
So, if you use haml and want to put the closing tag on the same line as the next opening tag, is there a solution besides switching to ERB?
(and no, I donβt want to bind to the css property of the parent container and have to override this in all the children).
It breaks (has an interval between anchors).
So, is it true that, in spite of the recommendations to make such layouts using the built-in block rather than floats, it seems that the floats still go, especially when using haml?
CSS
nav a { display: inline-block; padding: 5px; background: red; }
HTML
<nav> <a href="#">One</a> <a href="#">Two</a> <a href="#">Three</a> </nav>
Workaround (css tricks one):
<ul> <li> one</li><li> two</li><li> three</li> </ul>
or
<ul> <li>one</li ><li>two</li ><li>three</li> </ul>
other:
<ul> <li>one</li><li>two</li><li>three</li> </ul>
justingordon
source share