;

PDA

Click to See Complete Forum and Search --> : images in contentpanels


talytech
12-12-2007, 09:59 PM
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)

blanius
12-12-2007, 10:15 PM
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">

talytech
12-12-2007, 11:12 PM
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

thesween
12-13-2007, 07:29 AM
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

mvivit
12-13-2007, 03:50 PM
Haven't played with it myself, but can't you spec a <table> in your code for the content pane?

Putz
12-14-2007, 11:14 PM
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 ? )

talytech
12-15-2007, 10:22 AM
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.