Inline radio buttons under the label #1843
-
Hello, I need to have label and radio buttons displayed in the following way: How to do that using Fomantic classes? |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 3 replies
-
If you click on the empty tag to the right, you will see the necessary html code <div class="ui form">
<div class="inline fields">
<label for="fruit">Select your favorite fruit:</label>
<div class="field">
<div class="ui radio checkbox checked">
<input type="radio" name="fruit" checked="" tabindex="0" class="hidden">
<label>Apples</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="fruit" tabindex="0" class="hidden">
<label>Oranges</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="fruit" tabindex="0" class="hidden">
<label>Pears</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="fruit" tabindex="0" class="hidden">
<label>Grapefruit</label>
</div>
</div>
</div>
</div> |
Beta Was this translation helpful? Give feedback.
-
Maybe you misunderstand me.
I need to have a third way: |
Beta Was this translation helpful? Give feedback.
-
Is it possible to do that using Fomantic classes? |
Beta Was this translation helpful? Give feedback.
-
Two options:
|
Beta Was this translation helpful? Give feedback.
-
I adjusted @lubber-de fiddle (https://jsfiddle.net/ko2in/y7eup8b0/2/) to get a better layout with nice spacing between the fields. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your replies. What about to add that in the documentation, as third option for Fomantic radio buttons? |
Beta Was this translation helpful? Give feedback.
-
Anyway, @ko2in your code is different against the screenshot you attached. |
Beta Was this translation helpful? Give feedback.
-
Sorry, my bad! |
Beta Was this translation helpful? Give feedback.
I adjusted @lubber-de fiddle (https://jsfiddle.net/ko2in/y7eup8b0/2/) to get a better layout with nice spacing between the fields.