我的问题很简单,但我不知道我做错了什么..
我网站上的下拉菜单移动内容。我尝试了具有绝对和相对位置的 z-index,但没有奏效。也许我搞砸了一些东西,但现在我不知道是什么
感谢您的帮助和问候
body {
font-family: 'Segoe UI', sans-serif;
}
#logo {
margin-top: 15px;
margin-left: 10px;
float: left;
font-size: 30px;
color: white;
}
.menu>ul {
list-style-type: none;
width: 100%;
background-color: #333;
min-height: 130px;
}
#fest {
margin-left: 280px;
}
#pierwszy {
clear: both;
}
.element {
width: 120px;
height: auto;
display: inline-block;
padding: 10px;
color: white;
text-align: center;
font-size: 20px;
}
.menu>ul>li {
float: left;
margin-left: 30px;
margin-top: 30px;
}
.element:hover {
background-color: #555;
cursor: pointer;
}
.menu>#logo>p { …Run Code Online (Sandbox Code Playgroud)