Tutorial: Bindings/Numeric Inputs

Add style to align "numeric" and "range" inputs horizontally.
pull/6831/head
Mohamed Haddi 5 years ago
parent a5968dd2d0
commit 81290ea617

@ -13,4 +13,9 @@
<input type=range value={b} min=0 max=10> <input type=range value={b} min=0 max=10>
</label> </label>
<p>{a} + {b} = {a + b}</p> <p>{a} + {b} = {a + b}</p>
<style>
label { display: flex }
input, p { margin: 6px }
</style>

@ -13,4 +13,9 @@
<input type=range bind:value={b} min=0 max=10> <input type=range bind:value={b} min=0 max=10>
</label> </label>
<p>{a} + {b} = {a + b}</p> <p>{a} + {b} = {a + b}</p>
<style>
label { display: flex }
input, p { margin: 6px }
</style>
Loading…
Cancel
Save