Phil Jackson
12-12-2009, 12:39 PM
Im sorry im tired and cant think how to put this.
how do i make \\1 and \\2 = margin-bottom:([^;]+); and margin-top:([^;]+);
Sorry again,
Regards.
var regep = /margin-bottom:([^;]+); margin-left:0px; margin-right:0px; margin-top:([^;]+);/;
elementCSS = elementCSS.replace( regep , "margin-bottom:\\1; margin-left:auto; margin-right:auto; margin-top:\\2;");
how do i make \\1 and \\2 = margin-bottom:([^;]+); and margin-top:([^;]+);
Sorry again,
Regards.
var regep = /margin-bottom:([^;]+); margin-left:0px; margin-right:0px; margin-top:([^;]+);/;
elementCSS = elementCSS.replace( regep , "margin-bottom:\\1; margin-left:auto; margin-right:auto; margin-top:\\2;");