Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2018-12-17 05:18:37 +0300
committerMark Otto <otto@github.com>2018-12-21 20:03:29 +0300
commiteda851ee76bd01375f39682d903a76cc51207475 (patch)
treec0089a8d35153a7f7af991c5070af6449c7880ab /site/docs/4.2/utilities/vertical-align.md
parent2c0cd7d2edb41d6288c1eb4da18b614b04c4b912 (diff)
Prep for v4.2.0 release
- Move 4.1 docs to 4.2 - Update versions everywhere to 4.1.3 with release script - Manually bump the shorthand version in package.json - Add 4.2 to the versions docs page - Update some redirects - Fix tests asset URLs - Bump Nuget and more
Diffstat (limited to 'site/docs/4.2/utilities/vertical-align.md')
-rw-r--r--site/docs/4.2/utilities/vertical-align.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/site/docs/4.2/utilities/vertical-align.md b/site/docs/4.2/utilities/vertical-align.md
new file mode 100644
index 0000000000..bc4f0b950a
--- /dev/null
+++ b/site/docs/4.2/utilities/vertical-align.md
@@ -0,0 +1,40 @@
+---
+layout: docs
+title: Vertical alignment
+description: Easily change the vertical alignment of inline, inline-block, inline-table, and table cell elements.
+group: utilities
+---
+
+Change the alignment of elements with the [`vertical-alignment`](https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align) utilities. Please note that vertical-align only affects inline, inline-block, inline-table, and table cell elements.
+
+Choose from `.align-baseline`, `.align-top`, `.align-middle`, `.align-bottom`, `.align-text-bottom`, and `.align-text-top` as needed.
+
+With inline elements:
+
+{% capture example %}
+<span class="align-baseline">baseline</span>
+<span class="align-top">top</span>
+<span class="align-middle">middle</span>
+<span class="align-bottom">bottom</span>
+<span class="align-text-top">text-top</span>
+<span class="align-text-bottom">text-bottom</span>
+{% endcapture %}
+{% include example.html content=example %}
+
+With table cells:
+
+{% capture example %}
+<table style="height: 100px;">
+ <tbody>
+ <tr>
+ <td class="align-baseline">baseline</td>
+ <td class="align-top">top</td>
+ <td class="align-middle">middle</td>
+ <td class="align-bottom">bottom</td>
+ <td class="align-text-top">text-top</td>
+ <td class="align-text-bottom">text-bottom</td>
+ </tr>
+ </tbody>
+</table>
+{% endcapture %}
+{% include example.html content=example %}