]> git.ipfire.org Git - ipfire.org.git/blob - src/scss/bootstrap-4.0.0-alpha.6/docs/utilities/borders.md
Introduce autotools
[ipfire.org.git] / src / scss / bootstrap-4.0.0-alpha.6 / docs / utilities / borders.md
1 ---
2 layout: docs
3 title: Borders
4 group: utilities
5 redirect_from: "/utilities/"
6 ---
7
8 Use border utilities to quickly style the `border` and `border-radius` of an element. Great for images, buttons, or any other element.
9
10 ## Border
11
12 Add classes to an element to remove all borders or some borders.
13
14 <div class="bd-example-border-utils">
15 {% example html %}
16 <span class="border-0"></span>
17 <span class="border-top-0"></span>
18 <span class="border-right-0"></span>
19 <span class="border-bottom-0"></span>
20 <span class="border-left-0"></span>
21 {% endexample %}
22 </div>
23
24 ## Border-radius
25
26 Add classes to an element to easily round its corners.
27
28 <div class="bd-example bd-example-images">
29 <img data-src="holder.js/75x75" class="rounded" alt="Example rounded image">
30 <img data-src="holder.js/75x75" class="rounded-top" alt="Example top rounded image">
31 <img data-src="holder.js/75x75" class="rounded-right" alt="Example right rounded image">
32 <img data-src="holder.js/75x75" class="rounded-bottom" alt="Example bottom rounded image">
33 <img data-src="holder.js/75x75" class="rounded-left" alt="Example left rounded image">
34 <img data-src="holder.js/75x75" class="rounded-circle" alt="Completely round image">
35 <img data-src="holder.js/75x75" class="rounded-0" alt="Example non-rounded image (overrides rounding applied elsewhere)">
36 </div>
37
38 {% highlight html %}
39 <img src="..." alt="..." class="rounded">
40 <img src="..." alt="..." class="rounded-top">
41 <img src="..." alt="..." class="rounded-right">
42 <img src="..." alt="..." class="rounded-bottom">
43 <img src="..." alt="..." class="rounded-left">
44 <img src="..." alt="..." class="rounded-circle">
45 <img src="..." alt="..." class="rounded-0">
46 {% endhighlight %}