Hi,
I have a problem.
I want to place a text-box on the right from an image.
Therefor I have a style 'Text-box' which wil work on a DIV
I select the text which must be inserted in the text box. Select a div-wrapper and add a Text-box. The text-box starts at margin 0. That works wel if there is no image.
When there is an image (width 200) which will be floated on the left, the text-box is still starting at margin 0. The text itself is on the left of the image. Which is ok.
If I manually set the 'margin : 220' then it is ok. However this is not what I want.
Is there a way to calculate the start of the margin when there is a image of the left ?
TIA
Willem
I have a problem.
I want to place a text-box on the right from an image.
Therefor I have a style 'Text-box' which wil work on a DIV
{ name : 'Text-box' , element : 'div', styles : { 'background-color' : '#e0e0e0', 'border' : '1px solid blue', 'border-radius': '10px', 'padding' : '2px 4px 2px 4px', } }
I select the text which must be inserted in the text box. Select a div-wrapper and add a Text-box. The text-box starts at margin 0. That works wel if there is no image.
When there is an image (width 200) which will be floated on the left, the text-box is still starting at margin 0. The text itself is on the left of the image. Which is ok.
If I manually set the 'margin : 220' then it is ok. However this is not what I want.
Is there a way to calculate the start of the margin when there is a image of the left ?
TIA
Willem
Re: Calculate margins
have you tried to set image width and height?