Jump to content
Sign in to follow this  
Ragnar_Darude

img valign in html control

Recommended Posts

Hi!

Im using a dialog to display a html - control. It seems to me that valign (top, middle, bottom) doesnt work for images.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"><img src="picture.paa" align="left" valign="bottom">Text text text text<br>text text text

Should show the picture in the upper left corner with the text starting from the upper right corner of the picture and continues on the right side of the picture. This is also what is displayed when viewing the html-file in a normal browser, but not when viewing it in a Arma HTML dialog-control. The picture is on the left side, but the text starts on the bottom right of the picture, as if there wasnt a 'valign' setting in the <img> tag. Am i doing something wrong, is there a way around this or am I just going to have to accept it as a limitation of the engine?

Share this post


Link to post
Share on other sites
Hi!

Im using a dialog to display a html - control. It seems to me that valign (top, middle, bottom) doesnt work for images.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"><img src="picture.paa" align="left" valign="bottom">Text text text text<br>text text text

Should show the picture in the upper left corner with the text starting from the upper right corner of the picture and continues on the right side of the picture. This is also what is displayed when viewing the html-file in a normal browser, but not when viewing it in a Arma HTML dialog-control. The picture is on the left side, but the text starts on the bottom right of the picture, as if there wasnt a 'valign' setting in the <img> tag. Am i doing something wrong, is there a way around this or am I just going to have to accept it as a limitation of the engine?

all works

(parsetext "<t size='1' align='right' valign 'top' ><img image='galka.paa'/></t>");

if you want create image with text then:

(parsetext "<t size='1' align='right' valign 'top' ><img image='galka.paa'/></t>"+"<t size='1' align='right' valign 'top' >"+"texttexttextextetextetex"+"</t>");

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×