I am new to HTML programming.
Please refer to the code below:
<div data-role="content" data-mini="true" >
<div class="content-primary">
<input type="image" src="images/mobile.png" style="width:100px; padding:5px; background:#fff; border:1px solid #999;" value="Input" type="image" onclick="mobileClicked()" data-role="none" />
<span style="clear:both">Mobile</span>
</div>
</div>
All i want is to get the text below the image.
There are lots of ways that you can achieve this; If you are not married to using a
spantag, one possibility is to change it to aptag (jsFiddle here: http://jsfiddle.net/tuanderful/WcU2M/ ) This allows you to even remove theclear: bothIf you stick with your current structure, I notice you have a
clear: bothon the caption… I’ll addfloat: leftto both the caption as well as the input.