Chrome + jQuery hide/show inline
- by Parhs
Hello
I have these things
<ul class="ul_std" style="float:right">
<li class="action_buttons" ><a id="button_deleteNormal" class="button_small button_small_red" >??a??af?</a></li>
<li class="action_buttons"><a id="button_editCancel" class="button_small" >?????s? ???p?p???s??</a></li>
<li class="action_buttons"><a id="button_editNormal" class="button_small" >???p?p???s?</a></li>
<li class="action_buttons" style="margin-right:0" ><a id="button_addNormal" class="button_small">???s????</a></li>
</ul>
The problem is that i hide all of them except the anchor with id = button_addNormal
at $(document).ready()...
Everything works fine but at chrome when i want to show them ,it displays them as display:inline and not as display:inline-block ...
The css class button_small have display:inline-block....
Firefox,IE 6+ works ok... Havent tested on safari but i hope that it would be ok...
Why chrome kills inline-block?
The solution was to put .css("display","inline-block") instead of .show()