Nav Tab & Pills

3 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€92.39
List Price:  €129.36
You save:  €36.96
£78.06
List Price:  £109.29
You save:  £31.23
CA$136.31
List Price:  CA$190.84
You save:  CA$54.53
A$148.37
List Price:  A$207.73
You save:  A$59.35
S$134.94
List Price:  S$188.92
You save:  S$53.98
HK$780.98
List Price:  HK$1,093.40
You save:  HK$312.42
CHF 89.80
List Price:  CHF 125.72
You save:  CHF 35.92
NOK kr1,069.58
List Price:  NOK kr1,497.46
You save:  NOK kr427.87
DKK kr689.33
List Price:  DKK kr965.09
You save:  DKK kr275.76
NZ$164.72
List Price:  NZ$230.62
You save:  NZ$65.89
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.92
৳11,759.77
List Price:  ৳16,464.15
You save:  ৳4,704.38
₹8,350.29
List Price:  ₹11,690.74
You save:  ₹3,340.45
RM470.10
List Price:  RM658.16
You save:  RM188.06
₦140,585.94
List Price:  ₦196,825.94
You save:  ₦56,240
₨27,863.54
List Price:  ₨39,010.08
You save:  ₨11,146.53
฿3,639.23
List Price:  ฿5,095.07
You save:  ฿1,455.84
₺3,293.39
List Price:  ₺4,610.87
You save:  ₺1,317.48
B$541.60
List Price:  B$758.26
You save:  B$216.66
R1,807
List Price:  R2,529.88
You save:  R722.87
Лв180.78
List Price:  Лв253.10
You save:  Лв72.32
₩138,509.57
List Price:  ₩193,918.94
You save:  ₩55,409.37
₪366.11
List Price:  ₪512.57
You save:  ₪146.46
₱5,828.44
List Price:  ₱8,160.05
You save:  ₱2,331.60
¥16,152.86
List Price:  ¥22,614.65
You save:  ¥6,461.79
MX$1,783.39
List Price:  MX$2,496.82
You save:  MX$713.43
QR364.93
List Price:  QR510.92
You save:  QR145.98
P1,354.29
List Price:  P1,896.07
You save:  P541.77
KSh12,898.71
List Price:  KSh18,058.71
You save:  KSh5,160
E£4,802.65
List Price:  E£6,723.91
You save:  E£1,921.25
ብር5,743.27
List Price:  ብር8,040.81
You save:  ብር2,297.53
Kz87,106.28
List Price:  Kz121,952.28
You save:  Kz34,846
CLP$93,539.64
List Price:  CLP$130,959.24
You save:  CLP$37,419.60
CN¥727.50
List Price:  CN¥1,018.53
You save:  CN¥291.03
RD$5,916.90
List Price:  RD$8,283.90
You save:  RD$2,366.99
DA13,438.95
List Price:  DA18,815.07
You save:  DA5,376.12
FJ$223.39
List Price:  FJ$312.76
You save:  FJ$89.36
Q777.29
List Price:  Q1,088.25
You save:  Q310.95
GY$20,939.35
List Price:  GY$29,315.93
You save:  GY$8,376.58
ISK kr13,776.62
List Price:  ISK kr19,287.82
You save:  ISK kr5,511.20
DH985.88
List Price:  DH1,380.27
You save:  DH394.39
L1,781.53
List Price:  L2,494.22
You save:  L712.68
ден5,692.87
List Price:  ден7,970.24
You save:  ден2,277.37
MOP$805.39
List Price:  MOP$1,127.57
You save:  MOP$322.18
N$1,814.59
List Price:  N$2,540.50
You save:  N$725.91
C$3,684.42
List Price:  C$5,158.34
You save:  C$1,473.91
रु13,368.43
List Price:  रु18,716.34
You save:  रु5,347.90
S/379.39
List Price:  S/531.16
You save:  S/151.77
K391.28
List Price:  K547.81
You save:  K156.52
SAR375.01
List Price:  SAR525.03
You save:  SAR150.02
ZK2,474.70
List Price:  ZK3,464.69
You save:  ZK989.98
L459.54
List Price:  L643.38
You save:  L183.83
Kč2,345.76
List Price:  Kč3,284.16
You save:  Kč938.40
Ft36,309.59
List Price:  Ft50,834.88
You save:  Ft14,525.29
SEK kr1,054.13
List Price:  SEK kr1,475.83
You save:  SEK kr421.69
ARS$91,715.82
List Price:  ARS$128,405.82
You save:  ARS$36,690
Bs691.56
List Price:  Bs968.22
You save:  Bs276.65
COP$404,657.55
List Price:  COP$566,536.76
You save:  COP$161,879.20
₡53,509.30
List Price:  ₡74,915.16
You save:  ₡21,405.86
L2,478.84
List Price:  L3,470.48
You save:  L991.63
₲754,669.19
List Price:  ₲1,056,567.05
You save:  ₲301,897.86
$U4,006.62
List Price:  $U5,609.43
You save:  $U1,602.81
zł393.38
List Price:  zł550.76
You save:  zł157.37
Already have an account? Log In

Transcript

Hello, in this bootstrap four video, we're gonna cover tabs and pills for your nav. So we've got a nice, basic nav right here, I'm going to turn this into a tab system. So Daisy, instead of having a on top of each other, that is going to be next to each other, I can have a bit of styling to make it look a little better. So to do that, first of all, we're going to remove the URL, because if you've got tabs stem, you generally don't want a URL. So I'm gonna put a hash everywhere. For any chain, this one hash and to make this into a tab system for an extra class to the unordered list of NAB dashed hats.

Now if we save refresh, there we go. We have our new nav system as Alex's car a bit of hava styling obviously can't do That one because that's disabled, it's got a line underneath it, which goes all the way across, it's responsive. But by default, you'll probably be already on a particular tab. And to simulate that, you just add a class of active to one of your h ref. So I'm going to prefer the first one. And I said this to active.

Refresh, and there you go. It's simulating active. If I click the others, you might be thinking, why aren't they essentially being selected? The reason for that is you need JavaScript for that, plus, you also need some bodies for each of the tabs. And we'll be covering that in a separate video because there's a bit more information for that, and we'll need a separate video. So the next thing I'm going to show you is pills.

So to do pills, we're actually going to copy and paste This so you can see the different ones. I'm going to set this to pills. That's literally all you have to do, everything else remains the same. So if we refresh we have a pill based system. So this is the selected, these are hava disabled. And again, obviously, we can't select different ones simply because we don't have the body and the JavaScript implemented.

Final one we're going to show you is stacked pills. To do that. Again, we are going to copy and paste it. Obviously, we just need to change this to pills. But we also need nap dash stacked. So if we refresh the web browser now, the actual nap is now on top of each other.

And as you can see the button inside or the link inside the nav has taken off the width of its parent container. So let's take that into account when you're using columns. So that's it for now. In terms of tabs and pills, we will have a separate video covering like JavaScript side, like I said, plus a few more features. If you have any questions, feel free to post them on sonar learning Dakota, UK for slash question dot php, there'll be a link in the description. Plus, there'll be another link in the description to source code from this video, and source code from every other video in this series.

Please rate, comment and subscribe as it really does help us provide more content to you on a regular basis and for free. And as usual, thanks for watching and hope you have a great day.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.