Page 1 of 1
html object in layout grid
Posted: Fri Aug 01, 2025 1:15 am
by Weldon
If I put a HTML object in a layout grid with hard coded html ex..<h1>Heading</h1> it works fine. But if I add a div ex... <div id="div_id"></div> and add formatted html from variable using $('#div_id')append(var with formatted html) it won't display while in layout grid. If i take the HTML object out of layout grid is works fine. Is it possible to use the html object this way?
Re: html object in layout grid
Posted: Fri Aug 01, 2025 1:17 am
by crispy68
Would you have a small example project file you could share showing your set up for this?
Re: html object in layout grid
Posted: Fri Aug 01, 2025 1:20 am
by Weldon
this is the page I am working on
https://zoocrewclub.com/za_register1.php?c=zc1311exam
popup just shows the html in the variable I am using
Re: html object in layout grid
Posted: Fri Aug 01, 2025 1:29 am
by Weldon
Besides this what is best way to display html from variable on a webpage? Is there a control for this like a text area but for formatted html?
Re: html object in layout grid
Posted: Fri Aug 01, 2025 2:21 am
by Weldon
NVM got it to work with inline frame
Re: html object in layout grid
Posted: Fri Aug 01, 2025 5:43 am
by Pablo
Please note that if you place HTML code inside a Layout Grid, then the default font size will be 0, because the grid resets the font to make sure spaces do not affect the layout.
So, you will have to specify a font size for your custom code.