javascript - Text on same line -


existing code cannot modify, here expand class functionality on click helps user expand collapse function.

<h3 class="expand"> tree </h3> 

now have put text(root) smaller font size after tree in same line visibility controlled javascript.

<h3 class="expand"> tree <div id="root" style="display:none"><font size="2"> root</font></div></h3> 

javascript functionality working fine tree , root not coming in 1 proper line! , yes cannot change h3.

instead of div use span tag

<h3 class="expand"> tree <span id="root" style="display:none"><font size="2"> root</font></span></h3> 

Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -