Here is what I am working on.
What I want is padding of text that is inside of the “P” tag like we do cell padding in “TD” tag.
I changed this code line,
text.css({ position: 'absolute', top: '57px' }).hide();
to
text.css({ position: 'absolute', top: '57px', paddingTop: 10px}).hide();
but it’s not making any difference. What property is there to achieve what I want? I only found this “padding” one.
[EDIT]
Thanks, all. I didn’t give single quotes, silly mistake. Please check Mark’s comment and my response to it. How can I fix it ?
Answer to second question: Change
var box = $(this);tovar box = $('h2',this);.