Col
The Bootstrap column
component, implemented in Ruby.
bs_col(*args, &block)
bs_col(*args, &block)
Returns a bootstrap column containing content specified by a block. Also the column is customizable with the following options.
Optional options
sm
,md
,lg
,xl
,xxl
: Expects an Integer <= 12. This parameter set the size of the column by the given breakpointdefault
- Expects an Integer <= 12.default: 12
is equal tocol-12
in bootstraporder
,order_sm
,order_md
,order_lg
,order_xl
,order_xxl
: Expects an Integer <= 12. Set the order of the column by the given breakpointoffset
,offset_sm
,offset_md
,offset_lg
,offset_xl
,offset_xxl
: Expects an Integer <= 12. Move columns to the right using offset parameter by the given breakpointalign_self
- Expectsstart
,center
,end
. Align vertically within the column
HTML attributes This component accepts all the canonical HTML global attributes like id
or class
.
Examples
Example 1: Basic
returns
Example 2: Using offset option
returns
Example 3: Using the order option
returns
Last updated