I normally go for:
<div class="item-image{% if foo %} own-image{% endif %}">...</div>
but switching out the entire div
tag may be more readable.
Either way I’d do the styling with another class, not with inline css.
I normally go for:
<div class="item-image{% if foo %} own-image{% endif %}">...</div>
but switching out the entire div
tag may be more readable.
Either way I’d do the styling with another class, not with inline css.