Sie sind nicht angemeldet.

1

Mittwoch, 1. April 2009, 02:57

align a image to center into textfield

hello, it's posible align a image into the text field??? and some text down

With html is very easy with a div but xml i don't know.

example:
<div align="center"><img src="example.jpg"/></div>
it's a example

Thanks.

Graydon

Profi

Beiträge: 614

Wohnort: Texas

Beruf: Industrial gas turbine services.

  • Nachricht senden

2

Mittwoch, 1. April 2009, 03:40

You can only align an image to the right or left... not center. You could mimic a center aligned image if you do something like align=left and then set hspace as needed to push the image over to the center.

Check out these pages...
krpano - http://www.krpano.com/plugins/textfield/

adobe:
http://livedocs.adobe.com/flex/201/langr…d.html#htmlText
http://livedocs.adobe.com/flex/201/langr…StyleSheet.html

If you want to setup a background image...then you'll need to add an image plugin that sits behind (z-order) the textfield plugin... with the textfield plugin set for a transparent background.

By the way... welcome to the forum... *smile* If you need more detailed instructions, just say so, somebody will try to help.