回答編集履歴

1

コード追記

2021/10/20 06:51

投稿

hatena19
hatena19

スコア34362

test CHANGED
@@ -13,3 +13,69 @@
13
13
 
14
14
 
15
15
  [位置ユーティリティ~Bootstrap5設置ガイド](https://bootstrap-guide.com/utilities/position)
16
+
17
+
18
+
19
+ ```html
20
+
21
+ <main class="h-100">
22
+
23
+ <div class="page-wrapper h-100 w-100">
24
+
25
+ <!-- トップバー -->
26
+
27
+ <nav class="navbar px-3 py-5 bg-light border-bottom shadow-sm position-static justify-content-center">
28
+
29
+ <div class="navbar-brand toggle-menu position-absolute start-0">
30
+
31
+ <button class="btn btn-light btn-sm" id="sidebarToggler">
32
+
33
+ <i class="fas fa-bars fa-lg" id="sidebarTogglerFa"></i>
34
+
35
+ </button>
36
+
37
+ </div>
38
+
39
+ <!-- 中央画像 -->
40
+
41
+ <div class="nav-item-image ml-3 text-muted">
42
+
43
+ <img src="https://placehold.jp/200x50.png" width="200" height="50" alt="サンプル">
44
+
45
+ </div>
46
+
47
+ <ul class="navbar-nav d-flex flex-row position-absolute end-0">
48
+
49
+ <li class="nav-item-underline ml-3 text-muted">
50
+
51
+ <a class="p-2 link-secondary" href="#" style="text-decoration:none;">ABOUT</a>
52
+
53
+ </li>
54
+
55
+ <li class="nav-item-underline ml-3 text-muted">
56
+
57
+ <a class="p-2 link-secondary" href="#" style="text-decoration:none;">CONTACT</a>
58
+
59
+ </li>
60
+
61
+ <li class="nav-item-login mx-3 text-muted">
62
+
63
+ LOGIN
64
+
65
+ </li>
66
+
67
+ </ul>
68
+
69
+ </nav>
70
+
71
+ <!-- トップバー -->
72
+
73
+ </div>
74
+
75
+ </main>
76
+
77
+ ```
78
+
79
+
80
+
81
+ [CodePenサンプル](https://codepen.io/hatena19/pen/xxLOedY)