View page contains jquery code to set margin on div. below is the code –
<script type='text/javascript'>
$('#someID').css('margin-left', '10px');
</script>
it works when page requested via browser but same view code does not work while sending email.
What could be the possible reason ?
I can’t do inline css because i have different usage of same view template and i don’t want to duplicate same view code at two different places.
Emails have limited support for css. Have a look at the Guide to CSS support in email to verify if
marginis supported.