FXML how to Center image horizontally
<p>How do i center this image horizontally? I've tried putting in a <code>HBox</code> like so, however it does not work...</p>

<pre class="lang-xml prettyprint-override"><code>&lt;HBox alignment="CENTER"&gt;
    &lt;ImageView fitWidth="300" preserveRatio="true"&gt;
        &lt;image&gt;
            &lt;Image url="@Logo.png"/&gt;
        &lt;/image&gt;
    &lt;/ImageView&gt;
&lt;/HBox&gt;
</code></pre>