First is a drop down menu issue when you use the drop down...
Hi,
That problem got started by the float on the .products ul li , a float without a width will shrinkwrap to the width of it's content.
Then the problem got compounded by floating all the child elements too, the only one that needed a float was the img
Remove the floats from the LI, H2, and P and add text-align:left to the LI
Code:
.products ul li {
border-bottom:1px solid #CCCCCC;
display:block;
/*float:left;/*---- remove this ---*/
height:40px;
padding:10px 0;
text-align:left;/*--- add this ---*/
}
.products h2 {
display:block;
/*float:left;/*---- remove this ---*/
font-size:16px;
margin:0;
padding:2px 0 3px;
}
.products p {
color:#666666;
display:block;
/*float:left;/*---- remove this ---*/
font-size:10px;
margin:0;
padding:0;
font-size:10px;
}
.products img {
float:left;
padding-right:10px;
}
Second are these tiny white space on the bottom of the images
When using images in the html like that IE will give you whitespace at the bottom in it's default state of vertical-align:baseline
The fix is to set it as vertical-align:bottom or change the img to display:block
Set up a new selector to target that img and style it or better yet make them background images positioned at the bottom of the parent element with some bottom padding to show the image.
Bookmarks