From 1b3510585214824d16adac234895756ebe960e9e Mon Sep 17 00:00:00 2001 From: Teo Dell'Amico Date: Sat, 2 Apr 2016 14:11:18 -0700 Subject: Add `display` utility classes (.d-{inline,block,inline-block}); fixes #19343 Refs #19665 [skip sauce] --- docs/components/utilities.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'docs') diff --git a/docs/components/utilities.md b/docs/components/utilities.md index 829ee4907..350345cff 100644 --- a/docs/components/utilities.md +++ b/docs/components/utilities.md @@ -173,6 +173,28 @@ Easily make an element as wide as its parent using the `.w-100` utility class, w Width = 100% {% endexample %} +## CSS `display` (`block`, `inline`, `inline-block`) + +Use `.d-block`, `.d-inline`, or `.d-inline-block` to simply set an element's [`display` property](https://developer.mozilla.org/en-US/docs/Web/CSS/display) to `block`, `inline`, or `inline-block` (respectively). + +To make an element `display: none`, use our [responsive utilities](../layout/responsive-utilities/) instead. + +{% example html %} +
Inline
+
Inline
+ +Block + +
+

inline-block

+ Boot that strap! +
+
+

inline-block

+ Strap that boot! +
+{% endexample %} + ## Close icon Use a generic close icon for dismissing content like modals and alerts. **Be sure to include text for screen readers**, as we've done with `aria-label`. -- cgit v1.2.3