UNPKG

carbon-components

Version:

Carbon Components is a component library for IBM Cloud

27 lines (25 loc) 1.08 kB
<div class="bx--grid"> <div class="bx--row"> <div class="bx--col-xs-12 bx--col-sm-6 indigo"> <div class="bx--row"> <div class="bx--col-xs-12 bx--col-sm-6"> <div class="col-example"> <p>Content space for bx--col-xs-12 bx--col-sm-6</p> </div> </div> <div class="bx--col-xs-12 bx--col-sm-6 green"> <p>Full space for bx--col-xs-12 bx--col-sm-6 (columns naturally have padding on them, adding a background color to the column directly will effect the entire column, as opposed to using a child element in the example to the left). </p> </div> </div> <p>Columns also expand to match the vertical size of the rest of the row (see red column)</p> </div> <div class="bx--col-xs-12 bx--col-sm-6 red"> <p>Background color over entire column, not just content space</p> </div> <div class="bx--row"> <div class="bx--offset-xs-2 bx--col-xs-10">This content is offset. Offset adds a left-margin for x columns.</div> </div> </div> </div>