Skip to main content
Question

Aligning images in a 5 x 5 block

  • February 22, 2021
  • 0 replies
  • 25 views

MarkShnierYou
Forum|alt.badge.img+22
I have a child table of images along with shall we call it Above Text and Below Text.

My goal is to roll 25 images up into a 5 x 5 block on the parent record where each cell in the block has the Image vertically sandwiched between the Above Text and the Below Text.

For example, I have this set of 25 formula variables.  

The abbreviations stand for
$Ax = Above Text=
$Ix = Image
$Bx =  Below Text

var text PA = "<h3><b>" & $AA & "</h3>" & $IA & "<h4>" & $BA & "</h4>";
var text PB = "<h3><b>" & $AB & "</h3>" & $IB & "<h4>" & $BB & "</h4>";
var text PC = "<h3><b>" & $AC & "</h3>" & $IC & "<h4>" & $BC & "</h4>";
etc....
var text PY = "<h3><b>" & $AY & "</h3>" & $IY & "<h4>" & $BY & "</h4>";

Any one of these is fine on its own as my "sandwich", but my problem is that I cannot figure out how to make them go horizontally to be 5 wide.  I know that won't deal with the other 20, but I figure one step at a time towards my ultimate goal.

The look I'm trying to achieve is a bit like this if it was a 5 x 5 grid.

https://login.quickbase.com/db/9kaw8phg?a=ShowPage&pageid=160


 



------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------

  • Quickbase Alumni
  • February 23, 2021
This reminded me of Adam Keever's post with that health thing he wanted in a grid. I checked that out and I think that does most of what you want. https://community.quickbase.com/communities/community-home/digestviewer/viewthread?MessageKey=915c48c8-7d85-42ff-ac5f-6f82e364d680&CommunityKey=d860b0f8-6a48-487b-b346-44c47a19a804&tab=digestviewer#bm915c48c8-7d85-42ff-ac5f-6f82e364d680

I assumed this was in a Formula Rich Text field but you did not mention that. I only did 3 columns and 2 rows for mine because my images are larger than they should be for this, they are 500x500 each. From the description you gave I believe this is what you were asking for, or at least a rough mock up of it.


The end of the formula to do that was this. This is also probably bad because I don't even open a table tag or anything to do this, I just add the rows. 

"
<tr>
<td> " & $PA & "</td>
<td> " & $PB & "</td>
<td> " & $PC & "</td>
</tr>
<br>
<tr>
<td> " & $PA & "</td>
<td> " & $PB & "</td>
<td> " & $PC & "</td>
</tr>
"