B4J Question [ABMATERIAL] [SOLVED] How to use image as background for an entire row or cell?

Xandoca

Active Member
Licensed User
Longtime User
Hi,

I want to put an image as background for a entire row or cell with no superior or left margins, and also the cell size should be the image size.
I've tried the instructions over here but I have hard code the image size.
I tried the code below but it´s not working:
B4X:
    page.InjectCSS($"#cont1 {
                    background: url("/Teste/images/capa.jpg") no-repeat center !important;
                    }"$)

Thank you
 

Xandoca

Active Member
Licensed User
Longtime User
SOLVED

I've change the centerInPage parameter.
B4X:
 page.AddRows(1, True,"").AddCells12(1,"")
to
B4X:
 page.AddRows(1, False,"").AddCells12(1,"")
 
Upvote 0
Top