<p>You would typically just pop out a CSS class based on their selection.</p>

<p>So:</p>

<pre><code>&lt;blockquote class="align--{{ block.myAlignment }}"&gt;&lt;/blockquote&gt;
</code></pre>

<p>Just pop the value out into your markup, and then write the CSS to produce whatever effect you need</p>

CC BY-SA 3.0
2016-04-02T17:03:58.747Z
2016-04-02T17:03:58.747Z
Patrick Harrington
<p>How does one use position selects to float an element in Craft CMS template? Say I want to allow an author to center or float a quote block to the right or left using a position select. How would I do this in the template?</p>

<position>
How to use Position Select in Matrix blocks?
# How to use Position Select in Matrix blocks?

(Asked by: username_0 on 2016-04-02)

How does one use position selects to float an element in Craft CMS template? Say I want to allow an author to center or float a quote block to the right or left using a position select. How would I do this in the template?

**Tags:** position

---

## 1 answers

### Answer by username_1 on 2016-04-02. Score: 3 | Accepted answer

You would typically just pop out a CSS class based on their selection.
So:


Just pop the value out into your markup, and then write the CSS to produce whatever effect you need


---

