function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KeithJKeithJ 

How to use PanelGroup to display text & image

Hi there.

I'm sure this is a very trivial question,

but I'm trying to display an Image with text above it using PanelGrid and an embedded PanelGroup.

It wont work for me...

 

I can get the text to appear above the image but then each image & text is on it's own line.

Cannot figure how to get around this,...

 

Here's my vf code:

 

 

<apex:panelGrid columns="3" width="80%">
<apex:repeat value="{!dataList}" var="interviewEntry">
<apex:panelGroup>
<h2>test</h2>
<a href="{!interviewEntry.communityLink}" class="highlightit">
<img src="{!interviewEntry.intervieweeImage}" class="imgId" />
</a>
</apex:panelGroup>
</apex:repeat>
</apex:panelGrid>

 

What I get is

 

test

 ------

|       |

|       |

 ------

 

test2

 ------

|        |

|        |

 ------

 

 

etc

 

But I want:          test                test2

                         -------             ---------

                        |         |           |            |

                        |         |           |            |

                         -------             ---------