Disabling image text wrap

  • Hi there

    I'd like to add a picture and some text to a textfield, but I'm having some problems, as some of the text is placed under the image. I guess I couldfix it by adding br's, but I wonder if there's a better way.

    Here's the code and what happens:

    Code
    <data name="html"><b>Test</b><p><img src="files/050609-ChinesePharmacy.jpg"/></p>
    some text doesn't appear because it's under the image, but then the rest of it does.</data>



    Setting the image alignment to "right" allows to see better what's happening:

    Code
    <data name="html"><b>Test</b><p><img align="right" src="files/050609-ChinesePharmacy.jpg"/></p>
    some text doesn't appear because it's under the image, but then the rest of it does.</data>


    And even if the image is bigger, the text is still under it (you can see it on the left through the transparency)

    Am I doing something wrong? Or are the br's the way to go?

    Thanks
    Manuel

  • Hi Manuel,

    Am I doing something wrong? Or are the br's the way to go?

    After many tries, it seems that <br/> is the way....

    As Jarredja already said, have a look to the textfield example from Klaus.


    In this example, the text after the image is wrapped on the right of the image because of the textfield plugin width that is greater than the image...
    The list text is displayed under the image because of the serie of <br/>...

    Here the code, based on your datas, I used in my tries:


    Lots of <br/> for make the text displayed under the image...
    Note the textformat tag ... good to know to help formatting...

    Conclusion, textfield.swf is no really accurate to format an html... But here it is, helping to make some stuff...

    SAlut.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!