semantic ui how to offset
Asked Answered
G

3

13

How can you offset columns in Semantic ui like you can in Bootstrap?

eg- in bootstrap a column with class "col-sm-5 col-sm-offset-2" is 5 column wide and skipping the first 2 column of the page.

Glucosuria answered 2/4, 2016 at 22:6 Comment(0)
W
12

As offsets are not supported in Semantic UI's grid the only way I could think of working around this limitation is to insert an empty column where you need the offset:

<div class="one wide column"></div>
Wheaten answered 25/7, 2016 at 11:44 Comment(1)
Thanks Ben. This way you have to right a little extra code but I found semantic's gridding system works better than bootstrap's.Glucosuria
P
2

There is no predefined classes available for Offsetting Grids in Semantic UI.

https://github.com/Semantic-Org/Semantic-UI/issues/863

Pointblank answered 23/5, 2016 at 11:50 Comment(0)
R
0

within a Form.Group with e.g. 2 columns you can use

<Form.Group>
    <Form.Field inline width={8}/>
    <Form.Field>...(element which should have offset)...</Form.Field>
</Form.Group>
Recollected answered 28/7, 2020 at 11:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.