Movatterモバイル変換


[0]ホーム

URL:


CoreUI Angular Logo
Framework:
Getting startedIntroductionSupport CoreUICustomizeSassOptionsCSS VariablesLayoutBreakpointsContainersGridColumnsGuttersFormsOverviewAutocompletePRODate PickerPRODate Range PickerPROForm ControlSelectMulti SelectPROChecks & RadiosPassword InputPRORangeRange SliderPRORatingPROStepperPROInput GroupFloating LabelsLayoutTime PickerPROValidationComponentsAccordionAlertAvatarBadgeBreadcrumbButtonButton GroupCalendarPROCalloutCardCarouselClose buttonCollapseDropdownFooterHeaderImageList GroupLoading ButtonPROModalNavNavbarOffcanvasPaginationPlaceholderPopoverProgressSmart PaginationPROSmart TablePROSidebarSpinnerTableTabsNewToastTooltipWidgetsIconsChartsTemplatesNewAdmin & DashboardDownloadInstallationCustomizeContentMigrationv4 → v5v3 → v4Angular version


DownloadHire UsGet CoreUI PRO
On this page

Angular Gutters

Gutters are the padding between your columns, used to responsively space and align content in the CoreUI for Angular grid system.

How they work

  • Gutters are the gaps between column content, created by horizontal padding. We setpadding-right andpadding-left on each column, and use negative margin to offset that at the start and end of each row to align content.

  • Gutters start at1.5rem (24px) wide. This allows us to match our grid to thepadding and margin spacers scale.

  • Gutters can be responsively adjusted. Use breakpoint-specific gutter props to modify horizontal gutters, vertical gutters, and all gutters.

Horizontal gutters

c-row [gutter]={gx: *} directive can be used to control the horizontal gutter widths. Thec-container orc-container fluid parent may need to be adjusted if larger gutters are used too to avoid unwanted overflow, using amatching padding utility. For example, in the following example we’ve increased the padding with.px-4:

Custom column padding
Custom column padding
Loading...
Loading...

An alternative solution is to add a wrapper around thec-row with the.overflow-hidden class:

Custom column padding
Custom column padding
Loading...
Loading...

Vertical gutters

c-row [gutter]={gy: *} directive can be used to control the vertical gutter widths. Like the horizontal gutters,the vertical gutters can cause some overflow below thec-row at the end of a page. If this occurs, add a wrapperaroundc-row with the.overflow-hidden class:

Custom column padding
Custom column padding
Custom column padding
Custom column padding
Loading...
Loading...

Horizontal and vertical gutters

c-row [gutter]="2" directive can be used to control the horizontal gutter widths, for the following example we usea smaller gutter width, so there won't be a need to add the.overflow-hidden wrapper class.

Custom column padding
Custom column padding
Custom column padding
Custom column padding
Loading...
Loading...

Row columns gutters

Gutter props can also be added to row columns. In the following example, we use responsive row columns and responsive gutter props.

Row column
Row column
Row column
Row column
Row column
Row column
Row column
Row column
Row column
Row column
Loading...
Loading...

No gutters

The gutters between columns in our predefined grid props can be removed with [gutter]="{g: 0}".This removes the negative margins fromc-row and the horizontal padding from all immediate children columns.

Need an edge-to-edge design? Drop the parentc-container orc-container fluid.

In practice, here's how it looks. Note you can continue to use this with all other predefined grid props (including column widths, responsive tiers, reorders, and more).

.col-sm-6 .col-md-8.col-6 .col-md-4
Loading...
Loading...

API reference

Grid Module

import { GridModule } from '@coreui/angular';@NgModule({   imports: [GridModule,]})export class AppModule() { }

c-container

component

Inputs
propdescriptiontypedefaultnotes
fluidSet container 100% wide, spanning the entire width of the viewport.booleanundefined
breakpointSet container 100% wide until{sm|md|lg|xl|xxl} breakpoint.stringundefined

c-row cRow

componentdirective

Inputs
propdescriptiontypedefaultnotes
xsThe number of columns/offset/order on extra small devices (<576px).auto | number | booleanundefined
smThe number of columns/offset/order on extra small devices (<768px).auto | number | booleanundefined
mdThe number of columns/offset/order on extra small devices (<992px).auto | number | booleanundefined
lgThe number of columns/offset/order on extra small devices (<1200px).auto | number | booleanundefined
xlThe number of columns/offset/order on extra small devices (<1400px).auto | number | booleanundefined
xxlThe number of columns/offset/order on extra small devices (≥1400px).auto | number | booleanundefined

gutter

directive for c-row

Inputs
propdescriptiontypedefaultnotes
gutterDefine padding between columns to space and align content responsively in the Bootstrap grid system.(IGutterObjectGutterBreakpointsGutters)

c-col cCol

componentdirective

Inputs
propdescriptiontypedefaultnotes
xsThe number of columns/offset/order on extra small devices (<576px).auto | numberundefined
smThe number of columns/offset/order on extra small devices (<768px).auto | numberundefined
mdThe number of columns/offset/order on extra small devices (<992px).auto | numberundefined
lgThe number of columns/offset/order on extra small devices (<1200px).auto | numberundefined
xlThe number of columns/offset/order on extra small devices (<1400px).auto | numberundefined
xxlThe number of columns/offset/order on extra small devices (≥1400px).auto | numberundefined
offsetOffset grid columnsnumber|{sm|md|lg|xl|xxl}:numberundefined
orderControls the visual order of your columns. Includes support for1 through5 across all six grid tiers."first"|"last"|number|{sm|md|lg|xl|xxl}:numberundefined

CoreUI for Angular is Open Source UI Components Library for Angular.

Currently v5.5.17 Code licensed MIT, docs CC BY 3.0 .
CoreUI PRO requires acommercial license.


[8]ページ先頭

©2009-2025 Movatter.jp