[OH3] Main UI - New „main_widget“ - development and testing [deprecated]

See my other answer here for an explanation if you are trying to use % and not getting the results you expect:

Of course, the f7-card is just a div container with fancy card style, so it can use flexbox styling and if you set the flex parameter on each of the f7-blocks to the ratios that you want for the different sections you get relative scaling of the header and footer.

You can set a height value in the style of the card (which, in fact you will want to do for relative sizing of the header and footer, anyway). What I would recommend is to use a css variable for it. You can set a variable in the main widget, and reference that variable in any of the other widgets inside the main widget just fine.