I have a code as below:
$(function(){
$("#ani").slideUp(600,function(){
$(this).text('13').slideDown(600);
});
})
And HTML code as below:
<div>Comment: <span id="ani">12</span></div>
When page has been loaded slide will affect Comment: text. I have written this code in jsFiddle and you can watch it there.
What is the problem. I wrote display and height css properties for the outer div but gain no success ;(
Something like the below should do it.
The div should have a standard width and the inside span is
float: rightCSS
DEMO
Hope this helps
EDIT
This updated is based on OP’s answer:
css