html
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
<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<body>
<script> function show(shown, hidden) { document.getElementById(shown).style.display='block'; document.getElementById(hidden).style.display='none'; return false; } </script> </head> <body> <div id="Page1">
<nav class="nav">
<a href="#" class="nav__link">
<i class="material-icons nav__icon">school</i>
<span class="nav__text">Dashboard</span>
</a>
<a href="#" class="nav__link" onclick="return show('Page2','Page1');">
<i class="material-icons nav__icon">flash_on</i>
<span class="nav__text">Community</span>
</a>
<a href="#" class="nav__link nav__link--active">
<i class="material-icons nav__icon">home</i>
<span class="nav__text">Feed</span>
</a>
<a href="#" class="nav__link">
<i class="material-icons nav__icon">code</i>
<span class="nav__text">Code</span>
</a>
<a href="#" class="nav__link">
<i class="material-icons nav__icon">chat_bubble</i>
<span class="nav__text">Discuss</span>
Enter to Rename, Shift+Enter to Preview
css
css
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
body {
margin: 0 0 55px 0;
}
.nav {
position: fixed;
bottom: 0;
width: 100%;
height: 55px;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
background-color: white;
display: flex;
overflow-x: auto;""
}
#topicon {
font-size:25px;
margin-top:auto;
margin-bottom:auto;
}
.nav__link {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex-grow: 1;
min-width: 50px;
overflow: hidden;
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run