carbon-components
Version:
Carbon Components is a component library for IBM Cloud
34 lines (30 loc) • 1.25 kB
HTML
<!--
Copyright IBM Corp. 2016, 2018
This source code is licensed under the Apache-2.0 license found in the
LICENSE file in the root directory of this source tree.
-->
<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>