Answer the question
In order to leave comments, you need to log in
Inline-block padding and jade templating engine
How to comment out space between inline-block elements in Jade templates.
The HTML structure is something like this:
<ul>
<li>Item 1</li><!--
--><li>Item 2</li>
</ul>
Answer the question
In order to leave comments, you need to log in
In general, by default, jade removes all whitespace characters between tags, unless you set the pretty option to true.
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
ul { font-size: 0; }
ul li { font-size: 10px; display: inline-block; } // фикс для ie 6 и 7 надо zoom: 1; display: inline;
Use escaping, will output as plain text
| <li>Item 1</li><!--
| --><li>Item 2</li>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question