Twig変数を使用してスタイル値を与えたいと思います。CSSでTwigを使用する
CSS
.postit{
width:200px;
height:400px;
border:1px solid #FFCB00;
position;absolute;
}
小枝
{% for user in postits%}
<div class="postit" style ="left:{{user.X}}px; top:{{user.Y}}px">
</div>
{%endfor%}
は結果のdivタグは移動しません。