I am using a sliding doors effect to show a variable-width content box. The effect works fine, but the problem is that the padding-right required to make the effect eats up part of the content area:
http://screencast.com/t/s9dTT1wU
I need my content to go all the way from the left edge of the graphic to the right edge. I have to support old IE so I can't use negative margins, and I can't use text-indent because i need full HTML content on the interior, not just text. The CSS is:
.Quote.Outer
{
float: left;
background-image: url(/harmony/Common/Web/UI/Resources/Images/ValidationCalloutRight.png);
background-position: right center;
background-repeat: no-repeat;
padding-right: 50px;
height: 81px;
}
.Quote.Inner
{
background-image: url(/harmony/Common/Web/UI/Resources/Images/ValidationCalloutLeft.png);
background-position: left center;
background-repeat: no-repeat;
height: 81px;
outline: solid 1px hotpink;
}
and the markup is:
<div class="Quote Outer">
<div class="Quote Inner">html content here</div>
</div>
I was surprised to find no one else discussing this drawback of sliding doors. Is there a reasonable cross-browser solution for this?