views:

36

answers:

2

I am using following structure.

    <div style="background:#000 url(images/heading/bg.gif) repeat-x 0 0; height:28px; color:#FFF;">
    <div style="float:left; width:4px; background: #000 url(images/heading/left_curve.gif) no-repeat 0 left; height:28px;"></div>
    <span style="margin: 0 4px;">asdkjhkhasf</span>
    <div style="float:right; width:4px; background: #000 url(images/heading/right_curve.gif) no-repeat 0 right; height:28px;"></div>
    </div>
</div>    

In IE7, the right curve image(last div) is breaking to next line...

Please help me to resolve this issue.

A: 

Swap the span and the right-floated div, so that the div comes first.

tdammers
i tried the same, IE8 seems to overlap the both corner div's
Lokesh
A: 

try add "float:left" to your span

zhongshu
thanks a lot..works like a charm
Lokesh