×
Clear all filters including search bar
Valeri Tandilashvili's CSS Notes
nav ul li {
width: 25%;
border-bottom: 1px solid #bababa;
}
@media screen and (max-width: 500px) {
.hide-mobile {
display: none;
}
}
@media screen and (max-width: 500px) {
div.mobile-collapse {
width: auto;
float: none;
margin-right: 0;
}
}
img {
max-width: 100%;
height: auto;
}
div.inner {
width: 700px;
margin: auto;
}
.img_container {
text-align: center;
}
Another way of doing this:img {
display: block;
margin: 0 auto;
}
https://youtu.be/jiA7BRTL1A0?t=201#nav ul li:hover ul li a:hover {
background-color: #ebebeb;
}
#nav ul li {
float: left;
list-style: none;
}
#nav ul li ul li {
float: none;
}
In this example the sub-menu list items will return back to default none
value of float
property and will sit vertically#nav ul ul {
position: absolute;
left: -1000em;
}
#nav ul li:hover ul {
left: auto;
}