HTML and CSS Reference
In-Depth Information
make the gray/white work without attaching a
cropped image or an additional div?
IE7 doesn't recognize the
:before
selector. You can
recreate it using a mix of negative positioning on
the thumbnail or extend the gray background to
have the top part to look as the bottom part.
The code is simply a
padding-top
property:
#albums li p.thumbnail {
padding-top:20px;
}
The other option you can do is to move the image
with a negative
top
value, disable the paragraph
padding-bottom
property and add a
padding-top