×
          
              
          
      
      Clear all filters including search bar
          
        Valeri Tandilashvili's Personal Professional Blog
      
    @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;
}.home a:link, .home a:visited {
    width: 120px;
    height: 120px;
    background: url(../images/sprites.jpg) top left no-repeat;
}
.home a:hover {
    background-position: 0 -120px;
}
.home a:active {
    background-position: 0 -240px;
}
CSS Sprites are used mostly for performance purposesz-index is not useful