A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: images in contentpanels

  1. #1
    Senior Member
    Join Date
    Mar 2004
    Location
    Upper Marlboro, MD
    Posts
    146

    images in contentpanels

    Does anyone know how to get a jpg image along side your text in a contentpanel? For example, I currently have a contentpanel using text or html for my content. I want the contentpanel to display my text and then an image next to it. I'm able to get the image on another line but I want the image on the same line as the text. Like this:

    Tee Lew (jpg image here)



    This is what I have in the html box now:

    <font size='12'>Cancun, Mexico Vacation - October 25th - 30th</font>
    <IMG SRC="myImage.jpg" WIDTH="41" HEIGHT="41" BORDER="0">

    Cancun, Mexico Vacation
    (image is here)

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    If you want to display it inline in your HTML in a content pane the same rules apply as in HTML

    try:
    <font size='12'>Cancun, Mexico Vacation - October 25th - 30th</font>
    <IMG SRC="myImage.jpg" WIDTH="41" HEIGHT="41" BORDER="0" Align="left">

  3. #3
    Senior Member
    Join Date
    Mar 2004
    Location
    Upper Marlboro, MD
    Posts
    146
    thanks for that but that is what I already have. I want the image beside the text. sort a like in a table with columns where my text is in columnA and the image is in column B

  4. #4
    theSWEEN thesween's Avatar
    Join Date
    Nov 2005
    Location
    Hertfordshire, England
    Posts
    305
    I tried this...

    <html>
    <body>

    <p>
    An image
    <img src="eg.gif" align="bottom" width="48" height="48">
    in the text
    </p>

    </body>
    </html>

    It kind of works but html in a content pane doesnt work the way you want it I find. Hope this helps towards a solution.

    Cheers
    Steve

  5. #5
    Member
    Join Date
    Dec 2005
    Location
    Utah
    Posts
    98
    Haven't played with it myself, but can't you spec a <table> in your code for the content pane?

  6. #6
    Member
    Join Date
    Apr 2007
    Location
    Plano Texas USA
    Posts
    82
    one thing I've noticed about using html in contentpanes is that spaces do matter. Have you tried putting both the tags on the same line ? ( you probably did, just broke it down to two lines for our viewing ? )

  7. #7
    Senior Member
    Join Date
    Mar 2004
    Location
    Upper Marlboro, MD
    Posts
    146
    thanks everybody for your help. but i really didn't have to use HTML. I just used the following syntax and it worked:

    <img src="mypic.gif"> This is a test

    It seems like you can mix and match between HTML and plain text.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center