Skip to content

Commit ea57c51

Browse files
committed
document it a bit
1 parent 4bc154b commit ea57c51

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/utilities/sizing-and-positioning.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@ The `.pos-f-t` class can be used to easily position elements at the top of the v
1919
{% endhighlight %}
2020

2121

22-
## Full width
22+
## Width and height
2323

24-
Easily make an element as wide as its parent using the `.w-100` utility class, which sets `width: 100%`.
24+
Easily make an element as wide or as tall as its parent using the `.w-100` and `.h-100` utility classes.
2525

2626
{% example html %}
2727
<img class="w-100" data-src="holder.js/200px100?outline=yes&text=Width%20%3D%20100%25" alt="Width = 100%">
2828
{% endexample %}
29+
30+
{% example html %}
31+
<div style="height: 100px; background-color: rgba(255,0,0,0.1);">
32+
<div class="h-100" style="width: 100px; background-color: rgba(0,0,255,0.1);">Full height</div>
33+
</div>
34+
{% endexample %}

0 commit comments

Comments
 (0)