Results: 1022
img {
    max-width: 100%;
    height: auto;
}
div.inner {
    width: 700px;
    margin: auto;
}
One way to center an image horizontally
.img_container {
    text-align: center;
}
Another way of doing this:
img {
    display: block;
    margin: 0 auto;
}
https://youtu.be/jiA7BRTL1A0?t=201
Removing element from the dom
#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 purposes
Example, where
z-index
is not useful
z-index
only applies to elements which are positioned (
relative
,
absolute
,
fixed
) Don't use values like 1, 2, 3,... instead use 100, 200, 300
Results: 1022