I've recently come across a website and found that between most div
s a comment block is being used to 'push' the elements down. In my mind this is not the correct way to do it, but is it acceptable to do it commercially?
HTML
<div class="layout__item">
</div><!--
--><div class="layout__item">
</div><!--
--><div class="layout__item">
</div>
CSS
.layout__item {
display: inline-block;
padding-left: 22px;
vertical-align: top;
width: 100%;
}
and opens a new one, resulting in new line
– Nick Apr 30 '15 at 15:16