You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-v5/layout/css-utilities.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ title: CSS Utilities
6
6
7
7
Ionic Framework provides a set of CSS utility classes that can be used on any element in order to modify the text, element placement or adjust the padding and margin.
8
8
9
-
:::note
9
+
:::important
10
10
If your app was not started using an available Ionic Framework starter, the stylesheets listed in the [optional section of the global stylesheets](global-stylesheets.md#optional) will need to be included in order for these styles to work.
11
11
:::
12
12
@@ -121,7 +121,7 @@ The table below shows the default behavior, where `{modifier}` is any of the fol
121
121
122
122
### Float Elements
123
123
124
-
The float CSS property specifies that an element should be placed along the left or right side of its container, where text and inline elements will wrap around it. This way, the element is taken from the normal flow of the web page, though still remaining a part of the flow, contrary to absolute positioning.
124
+
The [float](https://developer.mozilla.org/en-US/docs/Web/CSS/float) CSS property specifies that an element should be placed along the left or right side of its container, where text and inline elements will wrap around it. This way, the element is taken from the normal flow of the web page, though still remaining a part of the flow, contrary to absolute positioning.
125
125
126
126
```html
127
127
<ion-grid>
@@ -165,7 +165,7 @@ The table below shows the default behavior, where `{modifier}` is any of the fol
165
165
166
166
## Element Display
167
167
168
-
The display CSS property determines if an element should be visible or not. The element will still be in the DOM, but not rendered, if it is hidden.
168
+
The [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) CSS property sets whether an element is treated as a block or inline box and the layout used for its children, such as flow layout, grid or flex. It can also be used to completely hide an element from the layout.
169
169
170
170
```html
171
171
<ion-grid>
@@ -190,7 +190,7 @@ The display CSS property determines if an element should be visible or not. The
|`.ion-hide`|`display: none`| The element will be hidden. |
192
192
193
-
### Responsive Display Attributes
193
+
### Responsive Display Classes
194
194
195
195
There are also additional classes to modify the visibility based on the screen size. Instead of just `.ion-hide` for all screen sizes, use `.ion-hide-{breakpoint}-{dir}` to only use the class on specific screen sizes, where `{breakpoint}` is one of the breakpoint names listed in [Ionic Breakpoints](#ionic-breakpoints), and `{dir}` is whether the element should be hidden on all screen sizes above (`up`) or below (`down`) the specified breakpoint.
Copy file name to clipboardExpand all lines: versioned_docs/version-v6/layout/css-utilities.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ title: CSS Utilities
12
12
13
13
Ionic Framework provides a set of CSS utility classes that can be used on any element in order to modify the text, element placement or adjust the padding and margin.
14
14
15
-
:::note
15
+
:::important
16
16
If your app was not started using an available Ionic Framework starter, the stylesheets listed in the [optional section of the global stylesheets](global-stylesheets.md#optional) will need to be included in order for these styles to work.
17
17
:::
18
18
@@ -127,7 +127,7 @@ The table below shows the default behavior, where `{modifier}` is any of the fol
127
127
128
128
### Float Elements
129
129
130
-
The float CSS property specifies that an element should be placed along the left or right side of its container, where text and inline elements will wrap around it. This way, the element is taken from the normal flow of the web page, though still remaining a part of the flow, contrary to absolute positioning.
130
+
The [float](https://developer.mozilla.org/en-US/docs/Web/CSS/float) CSS property specifies that an element should be placed along the left or right side of its container, where text and inline elements will wrap around it. This way, the element is taken from the normal flow of the web page, though still remaining a part of the flow, contrary to absolute positioning.
131
131
132
132
```html
133
133
<ion-grid>
@@ -171,7 +171,7 @@ The table below shows the default behavior, where `{modifier}` is any of the fol
171
171
172
172
## Element Display
173
173
174
-
The display CSS property determines if an element should be visible or not. The element will still be in the DOM, but not rendered, if it is hidden.
174
+
The [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) CSS property sets whether an element is treated as a block or inline box and the layout used for its children, such as flow layout, grid or flex. It can also be used to completely hide an element from the layout.
175
175
176
176
```html
177
177
<ion-grid>
@@ -196,7 +196,7 @@ The display CSS property determines if an element should be visible or not. The
|`.ion-hide`|`display: none`| The element will be hidden. |
198
198
199
-
### Responsive Display Attributes
199
+
### Responsive Display Classes
200
200
201
201
There are also additional classes to modify the visibility based on the screen size. Instead of just `.ion-hide` for all screen sizes, use `.ion-hide-{breakpoint}-{dir}` to only use the class on specific screen sizes, where `{breakpoint}` is one of the breakpoint names listed in [Ionic Breakpoints](#ionic-breakpoints), and `{dir}` is whether the element should be hidden on all screen sizes above (`up`) or below (`down`) the specified breakpoint.
Copy file name to clipboardExpand all lines: versioned_docs/version-v7/layout/css-utilities.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ inlineHtmlPreviews: true
14
14
15
15
Ionic Framework provides a set of CSS utility classes that can be used on any element in order to modify the text, element placement or adjust the padding and margin.
16
16
17
-
:::note
17
+
:::important
18
18
If your app was not started using an available Ionic Framework starter, the stylesheets listed in the [optional section of the global stylesheets](global-stylesheets.md#optional) will need to be included in order for these styles to work.
19
19
:::
20
20
@@ -129,7 +129,7 @@ The table below shows the default behavior, where `{modifier}` is any of the fol
129
129
130
130
### Float Elements
131
131
132
-
The float CSS property specifies that an element should be placed along the left or right side of its container, where text and inline elements will wrap around it. This way, the element is taken from the normal flow of the web page, though still remaining a part of the flow, contrary to absolute positioning.
132
+
The [float](https://developer.mozilla.org/en-US/docs/Web/CSS/float) CSS property specifies that an element should be placed along the left or right side of its container, where text and inline elements will wrap around it. This way, the element is taken from the normal flow of the web page, though still remaining a part of the flow, contrary to absolute positioning.
133
133
134
134
```html
135
135
<ion-grid>
@@ -190,7 +190,7 @@ The table below shows the default behavior, where `{modifier}` is any of the fol
190
190
191
191
## Element Display
192
192
193
-
The display CSS property determines if an element should be visible or not. The element will still be in the DOM, but not rendered, if it is hidden.
193
+
The [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) CSS property sets whether an element is treated as a block or inline box and the layout used for its children, such as flow layout, grid or flex. It can also be used to completely hide an element from the layout.
194
194
195
195
```html
196
196
<ion-grid>
@@ -215,7 +215,7 @@ The display CSS property determines if an element should be visible or not. The
|`.ion-hide`|`display: none`| The element will be hidden. |
217
217
218
-
### Responsive Display Attributes
218
+
### Responsive Display Classes
219
219
220
220
There are also additional classes to modify the visibility based on the screen size. Instead of just `.ion-hide` for all screen sizes, use `.ion-hide-{breakpoint}-{dir}` to only use the class on specific screen sizes, where `{breakpoint}` is one of the breakpoint names listed in [Ionic Breakpoints](#ionic-breakpoints), and `{dir}` is whether the element should be hidden on all screen sizes above (`up`) or below (`down`) the specified breakpoint.
0 commit comments