Hi Community,
I have two problems: If I am going to post an image with float: left than I can just set the hspace and not only the left or right or top or even bottom side. How can I add labels for top/bottom-margin and left/right-margin instead of vSpace and hSpace?
And the second thing is: If my picture is floated left, I want special styles, for example margin-right: 20px;
How can I realize that second thing on this code here:
id:"cmbAlign",requiredContent:"img{float}",type:"select",widths:["35%","65%"],style:"width:90px",label:c.lang.common.align,"default":"",items:[[c.lang.common.notSet,""],[c.lang.common.alignLeft,"left"],[c.lang.common.alignRight,"right"]],onChange:function(){g(this.getDialog());i.call(this,"advanced:txtdlgGenStyle")},setup:function(a,b){if(a==e){var c=b.getStyle("float");switch(c){case "inherit":case "none":c=""}!c&&(c=(b.getAttribute("align")||
"").toLowerCase());this.setValue(c)}},commit:function(a,b,c){var f=this.getValue();if(a==e||4==a){if(f?b.setStyle("float",f):b.removeStyle("float"),!c&&a==e)switch(f=(b.getAttribute("align")||"").toLowerCase(),f){case "left":case "right":b.removeAttribute("align")}}else 8==a&&b.removeStyle("float")}}]}]
(It's the right part, isn't it?)
Regards, SlazZe
bump
bump