css - IE7 float on new line -


my application uses bars on timeline. every line consists of barkeeper div holds bars line. barkeeper has 2 style properties width , height.

.barkeeper {     margin-bottom: 1px;     position: relative; } 

the bars have interactive ajax actions come richfaces , css hover , jquery javascript. therefore around each bar there form. i've left out action javascript simplify example.

.bar {     position: absolute;     text-align: center;     vertical-align: middle;     z-index: 0; }  <form id="j_id163:0:j_id165:0:medfrm" onmouseover="" method="post" name="j_id163:0:j_id165:0:medfrm" target="">     <div id="bar1" class="bar antibiotic" onmouseout="" onmouseover="" style="left: 7px; width:1528px;">         <img style="float:right;" src="endarrow.gif">         <div class="cornr_top">             <div></div>         </div>         <div style="text-align: center; direction: ltr;">bartext </div>         <div class="cornr_bottom">             <div></div>         </div>         <script type="text/javascript">     </div>    <input type="hidden" value="" name="" autocomplete="off">    <input type="hidden" value="" name="autoscroll" autocomplete="off">    <script type="text/javascript">    <input id="javax.faces.viewstate" type="hidden" autocomplete="off" value="" name="javax.faces.viewstate"> </form> 

the bars absolutaly positioned using left , width parameter.

the bars have have rounded corners i've added these cornr_top , cornr_bottom

.cornr_top div, .cornr_top, .cornr_bottom div, .cornr_bottom {     font-size: 1px;     height: 3px;     width: 100%; }  .cornr_top {     background: url("../img/tr.gif") no-repeat scroll right top transparent; }  .cornr_top div {     background: url("../img/tl.gif") no-repeat scroll left top transparent; } 

the cornr_bottom classes identicaly defined except images being used.

the last thing i've added line

<img style="float:right;" src="endarrow.gif"> 

this displays running arrow @ end of bar indicate still running.

now every browser displays of correctly. corners added corners , if available arrow overrides right side of bar , overlaps 2 corners on there.

arrow in firefox no arrow in firefox

in ie7 arrow displayed on new line. how can resolve issue?

arrow in ie7 no arrow in ie7

i've found solution myself.

i've changed arrow image tag

<img style="float:right;" src="endarrow.gif"> 

to

<img style="position:absolute; right:0px;" src="endarrow.gif"> 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -