-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbsTabsE5.html
36 lines (31 loc) · 1.05 KB
/
bsTabsE5.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!--
from BOOTSTRAP 3 Tabs: Exercise 5 ( https://www.w3schools.com/bootstrap/exercise_bs3.asp?filename=exercise_bs3_tabs5 )
question:
Add the required class name to center/justify the alignment of the pills.
<ul class="nav nav-pills _____________">
<li><a href="#">Home</a></li>
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">JavaScript</a></li>
</ul>
//-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<!-- BEGIN: answer -->
<ul class="nav nav-pills nav-justified">
<li><a href="#">Home</a></li>
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">JavaScript</a></li>
</ul>
<!-- END: answer -->
</body>
</html>