So I have a div with a background image; this div can grow in height and width depending on content/size of space for the div.
But regardless I would like the background image to be 100% in size displayed, this is because the background image has borders around it, and I need those displayed for a button-like effect.
div.leadgen {
background: url(/Website6/Styles/leadgen_center.png) repeat-x;
color: #FFF;
cursor: pointer;
display: inline-block;
}
<div class="leadgen">
<h3>
This is the title
</h3>
This is the description
</div>
EDIT
#solutionsNav div.leadgen {
background:url(/images/leadGen_bg2.png) no-repeat;
background-size: 100% 100%;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images/leadGen_bg2.png', sizingMethod='scale');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images/leadGen_bg2.png', sizingMethod='scale')";
behavior: url(/scripts/PIE.htc);
padding: 10px;
color: #FFF;
cursor: pointer;
}
This works for me in all browsers ! The only thing I need to figure out is in IE 7 and 8 I don't want to use background:url(/images/leadGen_bg2.png) no-repeat; because it seems to be doubling up.