Bild überlappende Burger -Navigationmenü mit CSS und HTML

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Bild überlappende Burger -Navigationmenü mit CSS und HTML

by Anonymous » 26 Aug 2025, 09:44

Ich habe ein Problem mit dieser neuen Website für meine örtliche Kirche. Ich folgte diesem Tutorial, um ein Burger-Menü mit nur HTML und CSS zu erstellen: verwendet. Das Problem, auf das ich lasse, ist, dass ich versuche, ein Bild in den Körper unter die Navigationsmenüs zu setzen, wenn ich meine Webauflösung kleiner mache und auf das Burger -Menü klicke. Es ist unter dem Bild. Ich bin neu in der Codierung. Vielen Dank, dass Sie Ihre Zeit damit verbracht haben, mir zu helfen. Ich schätze es wirklich. < /Strong> < /p>

Code: Select all

 **HTML**




Church of Christ





 The Church of Christ 

&#9776;


[url=#]Home[/url]
[url=#]Contact[/url]
[url=#]About[/url]
[url=#]Members[/url]


 location 
[img]IMG_2597.jpg[/img]



**CSS**

html, body {width: 100%;
height: 100%;
margin: 0;
}
html {
font-family: "helvetica neue", "sans sherif";
}

.nav {
border-bottom: 1px solid gold;
text-align: right;
height: 70px;
line-height: 70px;
}

.menu {
margin: 0 30px 0 0;
}

.menu a {
text-decoration: none;
color: rgb(255, 255, 255);
margin: 0 10px;
line-height: 70px;
clear: right;
}

span {
color: gold;
}

label {
margin: 0 40px 0 0;
font-size: 26px;
line-height: 70px;
display: none;
width: 26px;
float: right;
color: gold;
}

#toggle {
display: none;
}

@media only screen and (max-width: 500px) {
label {
display: block;
cursor: pointer;
}
.menu {
text-align: center;
width: 100%;
display: none;
}
.menu a {
display: block;
border-bottom: 1px solid gold;
margin: 0;
}
#toggle:checked + .menu {
display: block;
}
}

h1 {
text-align: center;
font-size: 50px;
margin: 10px 0px -10px 0px;
color: gold;
}

a {
font-size: 25px;
}

h2 {
text-align: center;
font-size: 45px;
color: rgb(255, 255, 255);
}

img {
width: 100%;
height: auto;
}

body {
background-color: rgb(0, 0, 0);
}

Top