
Originally Posted by
swaggers
I want the text on the bottom of the images to be centered, the opaque background to 100% wide and the text color to be white.
Hi,
Remove the star from your width:100%; so good browsers can have the width.
There is no need to float an AP element either, the AP wins out and the float is ignored. An AP element will shrinkwrap like a float does when no width is set, that's why your BG does not extend the full width.
Code:
div.boxcaption{
/*float: left;*/
position: absolute;
background: #000;
height: 20px;
font-size: 9pt;
width: 100%;
opacity: .8;
/* For IE 5-7 */
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
/* For IE 8 */
-MS-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
}
You got your top and left positions here so that positions them as you intended.
Code:
.caption .boxcaption {
top: 98px;
left: 0;
}
Bookmarks