Ich versuche, ein responsives Toggle-Menü mit CSS nur und unten ist der Code. Jede Art von Hilfe wird spürbar sein. Kein Javascript oder Jquery - nur CSS. Unten ist das Code-Snippet mit css und html-es ist klar.responsive toggle navbar - mit css nur
* {
box-sizing: border-box;
}
.container{
\t max-width: 900px;
\t margin: 0 auto;
}
.p-t {
display: table;
width: 100%;
table-layout: fixed;
}
.p-t .p-to {
display: table-cell;
vertical-align: middle;
height: 100%;
}
.text-right {
text-align: right;
}
.p-header{
\t position: fixed;
\t top: 0;
\t left: 0;
\t width: 100%;
\t height: 80px;
background-color:#c6c6c6;
\t z-index: 1000;
}
.list-inline > li {
display: inline-block;
list-style: none;
}
.p-header .list-inline li a{
\t display: block;
\t text-decoration: none;
\t color: #FFFFFF;
\t font-size: 16px;
\t padding: 0 20px;
\t line-height: 80px;
}
.p-header .list-inline li.active a,
.p-header .list-inline li a:hover{
\t color: #FFFFFF;
\t opacity: 1;
}
<div class="p-header">
\t <div class="container">
\t \t <div class="p-t">
\t \t <div class="p-to"><a><img src="white.png"></a></div>
\t \t \t <div class="p-to text-right">
\t \t \t \t <ul class="list-inline header-menu">
\t \t \t \t \t <li><a>Home</a></li>
\t \t \t \t \t <li><a>BUsiness</a></li>
\t \t \t \t \t <li><a>About</a></li>
\t \t \t \t \t <li><a>Login</a></li>
\t \t \t \t </ul>
\t \t \t </div>
\t \t </div>
\t </div>
</div>
Sie benötigen weitere Informationen. Was meinst du mit reagieren? Was willst du passieren? – Ethilium
@Ethilium bedeutet nur für kleine Bildschirmnavbar sollte aktiviert werden – koku19
Sie erwähnen auch nur CSS, aber Sie haben JS als ein Tag aufgeführt. Möchten Sie eine CSS-Lösung oder nur eine mit JS? – Ethilium