Skip to content

Commit

Permalink
Merge branch 'girlscript:Frontend_Web_Development_HTML_CSS_JS' into F…
Browse files Browse the repository at this point in the history
…rontend_Web_Development_HTML_CSS_JS
  • Loading branch information
I-ArchanaDash authored Nov 30, 2021
2 parents 5a65808 + e4b0fb5 commit ebc132b
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions Web_Development/FrontEnd/Bootstrap Border Colours/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Bootstrap Border colours


##### What is Bootstrap?
Bootstrap is a open-source CSS based framework. With the help of bootstrap one can make create a website within minutes that is responsive and elegant, It provides readymade,reusable components of the webstructure.

For styling borders, Bootstrap provides classes that can be used to give colours to the borders. The classes are stated as below:-

- border border-primary:- Mentioning this class would give you a border with blue colour.
- border border-secondary:- Mentioning this class would give you a border with gray colour.
- border border-success:- Mentioning this class would give you a border with green colour.
- border border-danger:- Mentioning this class would give you a border with red colour.
- border border-warning:- Mentioning this class would give you a border with yellow colour.
- border border-info:- Mentioning this class would give you a border with cyan colour.
- border border-light:- Mentioning this class would give you a border that is light in colour.
- border border-dark:- Mentioning this class would give you a border with black colour.
- border border-white:- Mentioning this class would give you a border with white colour.

The following source code is a HTML file with the bootstrap classes specified
```
<body>
<div class="container">
<h2>Bootstrap Border Colors List</h2>
<ul>
<li class="border border-primary">.border border-primary</li>
<br><li class="border border-primary">.border border-secondary</li>
<br><li class="border border-primary">.border border-success</li>
<br><li class="border border-primary">.border border-danger</li>
<br><li class="border border-primary">.border border-info</li>
<br><li class="border border-primary">.border border-warning</li>
<br><li class="border border-primary">.border border-light</li>
<br><li class="border border-primary">.border border-dark</li>
<br><li class="border border-primary">.border border-white</li>
</div>
</body>
```
The following output displays all the border colours along with their classes:-

![Capture101](https://user-images.githubusercontent.com/70684116/144068658-8ab99103-931f-4a1f-9120-3dd425e8caeb.PNG)

References:- [Boostrap Documentation](https://getbootstrap.com/docs/4.0/utilities/borders/#border-color)

0 comments on commit ebc132b

Please sign in to comment.