Menu
Click on the blind area diagram, obviously visible to the top of the menu on the edge of the table without a hand shape.
Original code:
#nav li {
float:left;
background:url("left_both.gif") no-repeat left top;
margin:0;
padding:0 0 0 9px;
border-bottom:1px solid #765;
}
#nav a {
float:left;
display:block;
background:url("right_both.gif") no-repeat right top;
padding:5px 15px 4px 6px;
text-decoration:none;
font-weight:bold;
color:#765;
}
Improved code:
#nav li {
float:left;
background:url("right_both.gif") no-repeat right top;
margin:0 0 0 9px;
padding:0;
}
#nav a {
float:left;
display:block;
position:relative;
left:-9px;
margin-right:-9px;
width:.1em;
background:url("left_both.gif") no-repeat left top;
padding:5px 20px;
text-decoration:none;
font-weight:bold;
color:#765;
}
Compared to the above code, you can see that the left and right background images are interchangeable, using relative positioning, list items and its links using the positive and negative boundaries of the method, the author in ie5.x, IE6, IE7, Firefox and opera debugging success.
Demo Page , the original current position code has been simplified by me, instead of class selector (classes selectors).