Hi Russell (?),
I believe that your sortie into CSS is unnecessary.
I have used CSS to export formatted text to MS Word, where I used the CSS to let me export the text as HTML, which I could import directly into MS Word, with text formatting intact. But I don't think you need to venture there.
There is a difference between portals and relationships. You can't nest portals, but you can use relationships within a portal row.
So instead of using 'executeSQL' (and losing all your text formatting on the way!), you need to explore the 'List' function.
For each line in your portal, you can make a relationship from there to the items you wish to list in the portal and then add a field to the table used in your portal with a calc which will look something like:
Put this field in your portal and the list of items you need should begin to appear, with text formatting enact.
Best wishes - Alan Stirling, London, UK.
+44 (0) 20 7724 2456 - firstname.lastname@example.org - www.ast.fm.
FileMaker Certified Developer for versions 7, 8, 9, 10, 11 and 12.
Worked perfectly, thank you very much! I wasn't aware List could be used in that way. That's much more convenient.