Forum Moderators: open

Message Too Old, No Replies

Add 1px to top padding

         

almo136

8:38 pm on Apr 24, 2010 (gmt 0)

10+ Year Member



I am using a 3rd party script which has this piece of code:

if (DD_roundies.IE8) {
el.vml.stroke.style.margin = '-1px';
if (typeof el.bW == 'undefined') {
this.vmlStrokeWeight(el);
}
el.vml.color.style.margin = (el.bW.Top-1) + 'px ' + (el.bW.Left-1) + 'px';
}


I would like to replace:
el.vml.stroke.style.margin = '-1px';


With some code which will add 1px to padding-top of the element instead. How can this be done?

Thanks.

whoisgregg

12:56 pm on Apr 28, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This should do the trick:

el.vml.stroke.style.paddingTop = '1px';