Skip to content

Commit

Permalink
Created Bootstrap Border colours.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Narcos101 authored Nov 30, 2021
1 parent a064b4d commit 2f556ec
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions Web_Development/FrontEnd/Bootstrap Border Colours/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# 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
- border border-secondary
- border border-success
- border border-danger
- border border-warning
- border border-info
- border border-light
- border border-dark
- border border-white

The following source code is a HTML file with the bootstrap classes specified
```
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Color Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
</script>
<script src=
"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js">
</script>
<script src=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js">
</script>
</head>
<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>
</html>
```
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 2f556ec

Please sign in to comment.